HTML< br />里面一个选择框 [英] HTML <br /> inside a Select Box
本文介绍了HTML< br />里面一个选择框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想要知道是否还有一个项目可以在一个选择框内分成两行。我的选择框的值之一是两个
解决方案
不,这是不可能的。
您可以考虑使用javascript小工具,例如这 jQuery插件。
我也可以说,你想做的是不常见的 - 即使在桌面应用程序中,用户也不希望在一个下拉菜单中找到包装的文本下框,如果他们看到一个可能会困惑。最好尝试不同的控制或尝试限制文本。
I would like to know if there is anyway I can divide an item on two line inside a select box.
One of the values of my select box is two long to fit in my div.
解决方案
No, this is impossible.
You can consider using a javascript widget, like this jQuery plug-in.
May I also say that what you are trying to do is uncommon - even in desktop applications users don't expect to find wrapped text in a drop-down box and may get confused if they do see one. It would be better to try a different control or try to limit the text.
这篇关于HTML< br />里面一个选择框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文