来自Bootstrap Responsive的崩溃btn的“显示”事件未在第一次正确触发而未将高度设置为“自动”。它在第一次展开后每次都有效,但绝不是第一次。
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a id="collapse-btn" 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="#"> </a>
<div class="nav-collapse">
<ul class="nav pull-right" id="user-dropdown">
<li>
<form class="navbar-search" action="">
<input type="text" class="search-query span3" placeholder="Search">
</form>
</li>
<li class=""><a href="#"><i class="icon-list icon-white"></i> Categories</a></li>
<li class=""><a href="#"><i class="icon-upload icon-white"></i> Upload</a></li>
<li class="dropdown" id="dropdown-click-user">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-user icon-white"></i> Username <b class="caret"></b></a>
<ul class="dropdown-menu" id="dropdown-menu-user">
<li><a href="#">Action</a></li>
<li><a href="#">Another action</a></li>
</ul>
</li>
</ul>
</div><!-- /.nav-collapse -->
</div><!-- /.container -->
</div><!-- /.navbar-inner -->
</div><!-- /.navbar -->
检查步骤:
我需要它第一次和其他所有人一起工作。想法?
谢谢, 添