【发布时间】:2017-01-24 18:28:20
【问题描述】:
我有代码
<select name="d" ><option value="sdf" class="test1">How to wrap the big line text How to wrap the big line text How to wrap the big line text How to wrap the big line text How to wrap the big line text How to wrap the big line text text How to wrap the big line text How to wrap the big line text </option></select>
我需要在列表框内换行。我们该怎么做??我尝试使用 CSS Wrap 文本 .. 它不起作用。
请帮帮我
问候 迪彭
【问题讨论】:
-
您不能在选项中包含文本,但您可以为 (text > some length) 编写自定义省略号,以便控制下拉菜单的宽度。
-
你可以试试这个 jquery 插件来做你所需要的github.com/fnagel/jquery-ui/wiki/Selectmenu