有没有办法在HTML中的表单控件中强制换行。我正在使用下拉菜单,有些选择占用了太多空间。如果可能的话,我想把它们分成多行。有什么想法吗?
编辑: 下面是问题菜单的代码:
<select name="Select1" multiple="multiple">
<option selected="selected">(Any)</option>
<option>Acadia National Park</option>
<option>Alaska Railroad</option>
<option>Arapho-Roosevelt<br/>National Forest</option>
<option>BLM</option>
<option>Cades Cove Heritage Tours</option>
<option>Cape Cod Commission</option>
<option>Cape Cod National Seashore</option>
<option>Cape Cod Regional Transit Authority</option>
<option>City of Baltimore DOT</option>
<option>City of Commerce City</option>
<option>City of Flagstaff</option>
<option>City of Jacksonville</option>
<option>City of Lowell, MA</option>
<option>City of New Bedford, Office of Planning</option>
<option>City of Augustine, FL</option>
<option>City of The Dalles</option>
<option>City of Visalia</option>
<option>Codevisa Transit with Municipality of San Juan
</option>
<option>Colonial National Historical Park</option>
<option>Cuyahoga Valley National Park</option>
<option>Cuyahoga Valley Scenic Railroad</option>
<option>Delaware Water Gap National Recreation Area
</option>
<option>Denali National Park and Preserve</option>
</select>
答案 0 :(得分:0)
尝试更改下拉菜单的宽度。你能发布你现有的代码吗?