<!--html里的写法,直接搭好bootstrap导航条结构
这里就用美食来做例子吧--><!--反色的导航条--><navclass="navbar navbar-inverse navbar-fixed-top"role="navigation"><divclass="container-fluid"><!-- Brand and toggle get grouped for better mobile display --><divclass="navbar-header"><buttontype="button"class="navbar-toggle collapsed"data-toggle="collapse"data-target="#bs-example-navbar-collapse-1"><spanclass="sr-only">Toggle navigation</span><spanclass="icon-bar"></span><spanclass="icon-bar"></span><spanclass="icon-bar"></span></button><aclass="navbar-brand"href="#">
美食之家 <spanclass="glyphicon glyphicon-cutlery"></span></a></div><!-- Collect the nav links, forms, and other content for toggling --><divclass="collapse navbar-collapse"id="bs-example-navbar-collapse-1"><ulclass="nav navbar-nav"><li><ahref="#">首页</a></li><liclass="dropdown"><ahref="#"class="dropdown-toggle"data-toggle="dropdown">菜谱
<spanclass="caret"></span></a><ulclass="dropdown-menu"role="menu"><liclass="dropdown-submenu"><ahref="#">主食</a><ulclass="dropdown-menu"><li><ahref="#">饭</a></li><li><ahref="#">饼</a></li><li><ahref="#">包子</a></li></ul></li><li><ahref="#">肉类</a></li><li><ahref="#">水产</a></li></ul></li><li><ahref="#">食材</a></li><li><ahref="#">健康</a></li><li><ahref="#">话题</a></li><li><ahref="#">活动</a></li></ul>
</div>
</div></nav>