我正在使用固定宽度的bootstap构建navbar,下面是我正在使用的代码,但右侧的下拉列表无法正常工作
<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: