在手机上,Bootstrap导航栏折叠按钮消失

时间:2017-07-23 23:31:59

标签: twitter-bootstrap-3 navbar

我正在为自己设计一个网站。

我遇到的问题是,当我在手机上测试我的网站(不接近完成)时,我无法使用导航栏折叠按钮。它只是消失了。

如果有人可以帮助我,我会非常感激。

我破坏的导航栏演示:http://darrovl.nl/

我的导航栏代码:

<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
    <div class="container">
        <div class="navbar-header page-scroll">
            <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>
            <a class="navbar-brand page-scroll" href="#page-top"><img class="img-responsive" src="img/logo.png" width="27"> </a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse navbar-ex1-collapse">
            <div class="slide-right" data-plugin-options='{"speed":1000, "distance":350}'>
                <ul class="nav navbar-nav">
                    <!-- Hidden li included to remove active class from about link when scrolled up past about section -->
                    <li class="hidden">
                        <a class="page-scroll" href="#page-top"></a>
                    </li>
                    <li>
                        <a class="page-scroll" href="#about">About</a>
                    </li>
                    <li>
                        <a class="page-scroll" href="#services">Services</a>
                    </li>
                    <li>
                        <a class="page-scroll" href="#contact">Contact</a>
                    </li>
                </ul>
            </div>
        </div>
        <!-- /.navbar-collapse -->
    </div>
    <!-- /.container -->
</nav>

0 个答案:

没有答案