引导程序中的3级下拉菜单

时间:2014-02-21 08:39:18

标签: jquery html css twitter-bootstrap

我的菜单数据是这样的。

Faculties
     Engineering
          Computer
          Electronic
     Medical  
          Some
     Economy
          Some1
          Some2

我想在bootstrap导航栏中显示这个。社会层面的下降没有出现。

 <li class="dropdown">
    <a href="#" role="button" class="dropdown-toggle" data-toggle="dropdown">Faculties<b class="caret"></b></a>
            <ul class="dropdown-menu" data-bind="foreach: data.Fakulties">
                <li class="dropdown">
                    <a href="#" role="button" class="dropdown-toggle" data-toggle="dropdown" data-bind="text: name"><b class="caret"></b></a>
                    <li class="dropdown">
                        <ul class="dropdown-menu" data-bind="foreach: Departments">
                            <li role="presentation"><a role="menuitem" href="#" data-bind="text: name"></a></li>
                        </ul>
                    </li>
                </li>
            </ul>
        </li>

1 个答案:

答案 0 :(得分:1)

这是您的问题的链接, 请检查一下...... http://bootsnipp.com/snippets/featured/multi-level-dropdown-menu-bs3