gpt4 book ai didi

HTML 表单控制换行

转载 作者:行者123 更新时间:2023-11-28 03:47:02 26 4
gpt4 key购买 nike

有没有办法在 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>

最佳答案

尝试更改下拉菜单的宽度。你能发布你目前拥有的代码吗?

关于HTML 表单控制换行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4521819/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com