我可以样式化< select>元素来显示列? [英] Can I style a <select> element to show columns?

查看:96
本文介绍了我可以样式化< select>元素来显示列?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在< select>中创建一个基于列的列表。元素with multiple = multiple - 我想在菜单中看到:

I'm trying to create a column-based list within a <select> element with multiple=multiple - what I'd like to see in the menu is:

Opt1    Opt5    Opt9
Opt2    Opt6    Opt10
Opt3    Opt7    Opt11
Opt4    Opt8    Opt12

这是否可能?我肯定愿意在jQuery中这样做,但是更喜欢CSS。

Is this possible? I'm certainly open to doing this in jQuery but would prefer CSS.

推荐答案

这个类似的SO问题

这个非常受欢迎的问题更进一步,添加自动完成。

And this very popular question takes it a bit further, adding autocomplete.

如果你googlejquery多列下拉列表 multiple 属性指定用户是否可以选择多个选项。

And if you google "jquery multi-column dropdownlist" you can find several more choices.

列表中的项目,而不是下拉列表中是否显示多个列。

BTW, the "multiple" attribute specifies whether the user can select multiple items in the list, not whether there are multiple columns displayed in the dropdownlist.

这篇关于我可以样式化&lt; select&gt;元素来显示列?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆