我遇到了一个奇怪的问题,即行数据条目的大小大于我的下拉列表和列表框的宽度。发生这种情况时,文本将被缩短。
发生这种情况的一些例子是:-
代码
守则如下:-
落下
<div class="level select">
<select id="MainContent_cmbClientName" style="width:140px;">
<option selected="selected" value="Select One Two Three Four Five Six Seven Eight">Select One Two Three Four Five Six Seven Eight</option>
<option value="Select One Two Three Four Five Six Seven Eight">Select One Two Three Four Five Six Seven Eight</option>
<option value="Select One Two Three Four Five Six Seven Eight">Select One Two Three Four Five Six Seven Eight</option>
<option value="Select One Two Three Four Five Six Seven Eight">Select One Two Three Four Five Six Seven Eight</option>
<option value="Select One Two Three Four Five Six Seven Eight">Select One Two Three Four Five Six Seven Eight</option>
</select>
</div>
选择框
<select size="4" id="MainContent_lstFamilyStatus" class="client-bg-repeat" style="color:#000060;">
<option value="1">Couple</option>
<option value="2">Family with 2+ Children</option>
<option value="3">Family with One Child</option>
<option value="4">Single Female</option>
<option value="5">Single Female and not willing to marry</option>
</select>
有什么办法可以解决这个问题,或者可能会将文本带到由于文本溢出而被剪切的下一行。
非常感谢。