jquery mobile 中搜索栏的宽度无法正确更改,默认宽度表现得很奇怪。我该如何解决这个问题?
最佳答案
我有同样的问题,宽度是 100%。 示例:
<input type="search" name="itemcode" id="itemcode" value="" class="required" style="display: inline-block; **width: 51%;** " width="13"/>;
宽度 51% 没有效果(不是内联 block )!
所以我不得不重写:
.ui-input-search{
/*we may use a fielcontain with ID if we don't want to override for ALL*/
width: 50%;<br>
}
关于jquery - input type=search width问题/jQ Mobile中的bug,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7164742/