我的bootstrap导航栏有问题。在手机(和其他低分辨率设备)上,这不会将菜单折叠为下拉菜单。 这是我的代码:
<header>
<nav class="navbar navbar-default navbar-inverse" role="navigation">
<div class="container-fluid" id="navfluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navigationbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="./Index.html">Stadtfestlauf</a>
</div>
<div class="collapse navbar-collapse" id="navigationbar">
<ul class="nav navbar-nav">
<li class="active"><a href="./Index.html">Startseite</a></li>
<li><a href="./Rueckblick.html">Rückblick</a></li>
<li><a href="./Wettbewerb.html">Wettbewerb</a></li>
<li><a href="./anmelden.html">Anmelden</a></li>
<li><a href="./sponsoren.html">Sponsoren</a></li>
</ul>
</div>
</div>
</nav>
</header>
我从stackoverflow得到了这个例子。我导入jquery(v2.1.4)后导入bootstrap js。