Input type=search width problem/bug in jQ Mobile
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>
}
精彩评论