gpt4 book ai didi

jquery - HTML 列表框换行文本

转载 作者:行者123 更新时间:2023-11-28 18:44:46 29 4
gpt4 key购买 nike

我有代码为

  <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 .. 它不起作用。

请帮帮我

问候点喷

最佳答案

你不能用自动换行来做到这一点 - 你可能想看到这个 Word wrap options in a select list

此外,您可以使用无序列表模拟整个下拉列表。

关于jquery - HTML 列表框换行文本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10743676/

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