我正在使用固定宽度的引导程序构建导航栏,下面是我正在使用的代码,但右侧的下拉菜单不起作用
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="/">PROJECT</a>
<div class="nav-collapse">
<ul id="menu" class="nav">
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Contanct</a></li>
</ul>
</div><!-- /.nav-collapse -->
<ul class="nav pull-right"> <!-- user-menu dropdown -->
<li class="dropdown" id="user-menu">
<a href="#user-menu" class="dropdown-toggle" data-toggle="dropdown">
<i style="opacity: 0.40;" class="icon-user icon-white"> </i> Anonymous
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li data-name="user-activity"><a href="#">Preferences</a></li>
<li class="divider"></li>
<li><a href="#">Logout</a></li>
</ul>
</li>
</ul> <!-- /user-menu dropdown -->
</div>
</div><!-- /navbar-inner -->
</div>
我按顺序将css和js包含在下面:
- bootstrap.min.css
- 引导响应.min.css
- jquery-1.4.1.js
- bootstrap.min.js
- 引导-dropdown.js