BootStrap 3-NavBar折叠按钮不起作用

时间:2019-07-17 21:21:02

标签: twitter-bootstrap navbar

我已经从Bootsrap页面复制了该导航栏,并且collpase按钮无法正常工作,为什么?

    <nav class="navbar navbar-inverse">
        <div class="container-fluid">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>                        
                </button>
                <a href="index.html"><img class="block" id="logo" src="images/logo.png"></a>
            </div>
            <div class="collapse navbar-collapse" id="myNavbar">
                <ul class="nav navbar-nav navbar-right">
                    <li class="active"><a href="#">VGO</a></li>
                    <li><a href="vIRL.html">vIRL</a></li>
                    <li><a href="csgo.html">CS:GO</a></li>
                    <li><a href="trading.html">TRADING</a></li>                        
                    <li><a href="cashout.html">CASHOUT</a></li>
                    <li><a href="about.html">ABOUT</a></li>
                </ul>
            </div>
        </div>
    </nav>

0 个答案:

没有答案