我的 JQuery 移动网页(用于 Android 应用程序)的一部分如下所示:
<table style="width:100%">
//here are some other rows with other input fields
<tr>
<td>Combobox:</td>
<td>
<select id="sl_bnd">
<option value="0">Very very very long text</option>
<option value="1">Shorty</option>
</select>
</td>
</tr>
The problem is that when the "Very very very long text" is selected, the combobox becomes wider showing half of the table out of the screen.
我想要的是将组合框设置为固定的初始大小(这是动态的,因为屏幕可能具有不同的分辨率)。
有谁知道如何做到这一点?