0
我一直在我的網站上試用Bootstrap 3:http://infenterprises.com/
我的問題是,當我嘗試打開導航欄切換(移動視圖)它只在主頁上打開。它通過下拉式服務來做到這一點。Twitter Bootstrap - Navbar切換不會在索引以外的頁面上打開
謝謝!
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-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="http://infenterprises.com/">INFENTERPRISES</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse navbar-right" id="navbar-collapse">
<ul class="nav navbar-nav">
<li class="active"><a href="http://infenterprises.com/">Home</a></li>
<li><a href="../about/">About</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Projects<span class="caret"> </span>
</a><ul class="dropdown-menu" role="menu">
<li><a href="#1">Item 1</a></li>
<li class="divider"></li>
<li><a href="#2">Item 2</a></li>
</ul>
</li>
<li><a href="../services/">Services</a></li>
<li><a href="../contact/">Contact</a></li>
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
</header>
這很有道理。我必須使用其他元素來完成此操作,並完全忽略jQuery路徑。感謝您爲我提供解決方案和解決方案! – Infiniti 2014-11-15 21:00:12