我用三个链接编写了一个导航栏。导航栏应该是响应式的,这意味着如果窗口变得足够小,链接应该会消失(就像它们一样),并且应该出现一个带有三个水平线的新按钮(不会出现)。
<nav class="navbar navbar-fixed-top" role="navigation">
<div class="navbar-inner">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="btn btn-navbar" class="navbar-toggle"
data-toggle="collapse"
data-target=".navbar-ex1-collapse">
<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="/server">APL</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div
class="collapse navbar-collapse navbar-ex1-collapse">
<ul class="nav navbar-nav">
<li class="active"><a href="impressum.html">Impressum</a></li>
<li class="active"><a href="documentation.html">Documentation</a></li>
</ul>
</div>
</div>
</div>
</nav>
为什么以下 JSFiddle 演示中的按钮保持不可见(相同的标记)?