[英]Jquery Mobile — how to Override Height and width of select box.
<select id="selectId" name="name1" style="height:10% !important;" >
<option>Select One</option>
<option>xxx</option>
<option>yyy</option>
<option selected="selected">rrr</option>
<option>ggg</option>
<option>fff</option>
<option>qqq</option>
</select>
如何设置选择的宽度和高度。 我正在使用jquery mobile css,我无法完成这项工作。 请帮我
提前致谢
尝试指定精确的高度,例如100px,或者如果您希望它具有百分比,请确保您的容器也具有高度。
<select id="selectId" name="name1" style="height:100px !important;" >
这个运行。
如果你坚持使用jquery,你可以使用
$("#selectId").width("enter your width");
$("#selectId").height(enter your height);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.