Javascript 下拉菜单中的 Bootstrap 下拉菜单

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/11344596/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-24 05:33:50  来源:igfitidea点击:

Bootstrap dropdown within dropdown

javascripthtmlcsstwitter-bootstrap

提问by pangi

Is it possible to make multi-level drop-downs with Bootstrap?

是否可以使用 Bootstrap 制作多级下拉菜单?

So that this would be the structure:

所以这将是结构:

Dropdown:
  - First option
  - Second option
  - Another dropdown within this one
      - First option of the second dropdown
      - Second option of the second dropdown
  - Third option of the first dropdown

下拉列表:
  - 第一个选项
  - 第二个选项
  - 此
      选项中的另一个下拉列表
      - 第二个下拉列表的第一个选项- 第二个下拉列表的第二个选项
  - 第一个下拉列表的第三个选项

Is this possible?

这可能吗?

采纳答案by Govind Malviya

check thisit may help you. some one also asked this question Twitter Bootstrap Multilevel Dropdown Menu

检查这个它可能会帮助你。有人也问了这个问题Twitter Bootstrap 多级下拉菜单

回答by shimanyi

Follow this link http://bootsnipp.com/snippets/featured/multi-level-dropdown-menu-bs3The implementation is well done using bootstrap 3.0

按照此链接http://bootsnipp.com/snippets/featured/multi-level-dropdown-menu-bs3使用 bootstrap 3.0 很好地实现