-1
當頁面縮小到平板電腦/手機大小時,將顯示切換按鈕,但不起作用。下面是HTMLBootstrap導航欄切換按鈕不起作用
<nav class="navbar navbar-inverse navbar-fixed-top">
\t \t <div class="container">
\t \t \t <div class="navbar-header">
\t \t \t \t <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-nav-demo" aria-expanded="false">
\t \t \t \t \t <span class="sr-only">Toggle navigation</span>
\t \t \t \t \t <span class="icon-bar"></span>
\t \t \t \t \t <span class="icon-bar"></span>
\t \t \t \t \t <span class="icon-bar"></span>
\t \t \t \t </button>
\t \t \t \t <a href="#" class="navbar-brand"><span class="glyphicon glyphicon-picture" aria-hidden="true"></span> IMGS</a>
\t \t \t </div>
\t \t \t <div class="collapse navbar-collapse" id="bs-nav-demo">
\t \t \t \t <ul class="nav navbar-nav">
\t \t \t \t \t <li><a href="#">About</a></li>
\t \t \t \t \t <li><a href="#">Contact</a></li>
\t \t \t \t </ul>
\t \t \t \t <ul class="nav navbar-nav navbar-right">
\t \t \t \t \t <li><a href="#">Sign Up</a></li>
\t \t \t \t \t <li><a href="#">Login</a></li>
\t \t \t \t </ul>
\t \t \t </div>
\t \t </div>
\t </nav>
....
....
\t <script type="text/javascript" href="https://code.jquery.com/jquery-2.2.1.js"></script>
\t <script type="text/javascript" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
它不包括所需的JS鏈接。
愚蠢的問題,而是:你開
這是編輯代碼塊時的錯誤。這是調整 –
我檢查了所有類似的問題,但我找不到解決方案。也許一些小問題需要糾正 –