Bootstrap 3中的Navbar崩溃无法正常工作

时间:2016-02-24 20:26:53

标签: css html5 twitter-bootstrap-3

我在Twitter引导程序中有以下HTML代码......

<nav class="navbar navbar-inverse navbar-fixed-top">
    <div class="container">
        <div class="col-sm-4">
            <a href="#"><img src="img/logo.png" class="img-responsive"/></a>
        </div>

        <div class="col-sm-8 col-sm-12">
            <div class="col-sm-3 pull-right">
                <ul class="social pull-right ul-social-link">
                                <li style="background: none"> <a href="#"> <i class=" fa fa-facebook">   </i> </a> </li>
                                <li style="background: none"> <a href="#"> <i class="fa fa-twitter">   </i> </a> </li>
                                <li style="background: none"> <a href="#"> <i class="fa fa-google-plus">   </i> </a> </li>
                            </ul>
            </div>
            <div class="col-sm-8 pull-right">
                <div class="col-md-5 pull-right text-right">
                    <p class="contact"><a href="#"><span class="glyphicon glyphicon-phone-alt" aria-hidden="true"></span> +912345678910</a></p>
                </div>
                <div class="col-sm-5 pull-right">
                    <p class="contact"><a href="#"><span class="glyphicon glyphicon-envelope" aria-hidden="true"></span> mail@indtechhc.com</a></p>
                </div>
            </div>
            <div class="clearfix"></div>
            <div class="col-sm-12">
                <button class="navbar-toggle" data-toggle="collapse" data-target=".navHeaderCollapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <div class="collapse navbar-collapse navHeaderCollapse">
                    <ul class="nav navbar-nav navbar-right">
                        <li class="active"><a href="#">Home</a><li>
                        <li><a href="#">We are</a><li>
                        <li><a href="#">Products</a><li>
                        <li><a href="#">About us</a><li>
                        <li><a href="#">Contact us</a><li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</nav>

但是当我触发折叠按钮时它无效!请指教。

1 个答案:

答案 0 :(得分:0)

确保包含jquery.js并且它在bootstrap.min.js之前