0
我看了其他問題,但我似乎無法修復我的導航欄中的下拉菜單。如何解決我的導航欄
我試圖製作一個像here那樣的下拉菜單,它位於右上角。
這是我的代碼:
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" 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>
<!-- You'll want to use a responsive image option so this logo looks good on devices - I recommend using something like retina.js (do a quick Google search for it and you'll find it) -->
<a class="navbar-brand" href="#">Loveland Tigers</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 navbar-right">
<li><a href="#">About</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Teams<b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="freshman.html">Freshman</a></li>
<li><a href="junior_varsity.html">Junior Varsity</a></li>
<li><a href="varsity.html">Varsity</a></li>
</ul>
</li>
<li><a href="#">Contact</a></li>
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container -->
</nav>
的下拉菜單顯示不出來,當我點擊小箭頭。
哪裏是CSS和/或JavaScript? –
你可以在小提琴中製作演示嗎?或包括相關的CSS&javascript –
@PrasanthKC他已經通過給鏈接提供鏈接到小提琴的問題的鏈接間接鏈接到小提琴。 –