Bootstrap 3导航栏崩溃不扩大 [英] Bootstrap 3 navbar collapse not expanding
本文介绍了Bootstrap 3导航栏崩溃不扩大的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我为移动查看器制作了一个简单的导航栏。当页面达到较小宽度时,将显示图标,但在单击按钮时,图标将不会展开。
I'm making a simple navbar that collapses for mobile viewers. The icon appears when the page reaches a small width, but upon clicking the button, it will not expand.
<div id="headerfront" class="navbar navbar-static-top">
<div class="container">
<a href="" class="navbar-brand" ><img id="logo" src="images/brand.png" height="44px" width="146px" /></a>
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navHeaderCollapse">
<span class="glyphicon glyphicon-chevron-down" ></span>
</button>
<div class="collapse navbar-collapse navHeaderCollapse">
<ul class="nav navbar-nav navbar-right">
<li><a href="#" class="" >Sign In</a></li>
<li><a href="#" class="" >Sign Up</a></li>
</ul>
</div>
</div>
</div>
这里是头部中的链接和脚本:
Here are the links and scripts in the head:
<script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
<script src="//code.jquery.com/jquery-migrate-1.2.1.min.js" type="text/javascript"></script>
<script src="js/boostrap.js" type="text/javascript"></script>
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/styles.css">
任何想法?感谢!
推荐答案
更可能的是你错过了bootstrap js文件,请更换您的行
More likely you miss bootstrap js file please replace your line
<script src="js/boostrap.js" type="text/javascript"></script>
与
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
这篇关于Bootstrap 3导航栏崩溃不扩大的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文