简体   繁体   English

Twitter Bootstrap - 使用div内容而不是列表下拉

[英]Twitter Bootstrap - dropdown with div content instead of a list

What's the recommended way to do this? 建议的方法是什么?

Here's an example of what I've done http://jsfiddle.net/T9QHw/56/ Normal dropdown on the left, and the div version on the right. 这是我所做的一个例子http://jsfiddle.net/T9QHw/56/左边是普通下拉菜单,右边是div版本。

But the div acts a little funny. 但这个div有点搞笑。 It closes itself if I click on it, and styles a tags as blocks. 它会自行关闭,如果我点击它,和风格a标签为块。

Should I be doing this a different way? 我应该以不同的方式做这件事吗?

也许您想要使用Popover组件而不是Dropdown组件?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM