开发者

Input type=search width problem/bug in jQ Mobile

开发者 https://www.devze.com 2023-03-30 07:51 出处:网络
The width from the search bar in jquery mobile cannot be changed properly and the default 开发者_C百科width acts strange. How do I fix this?I had the same problem, the width is 100%.

The width from the search bar in jquery mobile cannot be changed properly and the default 开发者_C百科width acts strange. How do I fix this?


I had the same problem, the width is 100%. Example:

<input type="search" name="itemcode" id="itemcode" value="" class="required" style="display: inline-block;  **width: 51%;** " width="13"/>;

The width 51% does have not effect (not the inline-block)!

So I had to override:

.ui-input-search{
    /*we may use a fielcontain with ID if we don't want to override for ALL*/
    width: 50%;<br>
}
0

精彩评论

暂无评论...
验证码 换一张
取 消