如何在Bootstrap中实现subnav

时间:2015-07-16 07:19:59

标签: twitter-bootstrap twitter-bootstrap-3

我正在使用bootstrap 3.我可以通过标签获得主导航栏。我如何在bootstrap3中获得subnav。请任何人帮助我在bootstrap中获取subnav。

1 个答案:

答案 0 :(得分:0)

try this you will get subnav 

 <ul class="nav navbar-nav">
            <li class="active"><a href="#">Home</a></li>
            <li><a href="#about">About</a></li>
            <li><a href="#contact">Contact</a></li>
            <li class="dropdown">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Dropdown <span class="caret"></span></a>
              <ul class="dropdown-menu">
                <li><a href="#">Action</a></li>
                <li><a href="#">Another action</a></li>
                <li><a href="#">Something else here</a></li>
                <li role="separator" class="divider"></li>
                <li class="dropdown-header">Nav header</li>
                <li><a href="#">Separated link</a></li>
                <li><a href="#">One more separated link</a></li>
              </ul>
            </li>
          </ul>