[英]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.