why don't I get a black navbar at the top and toggle button shows?

时间:2015-07-31 19:23:05

标签: twitter-bootstrap

why don't I get a black navbar at the top and toggle button shows?

            <div 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-collapse">
                            <span class="sr-only">Toggle navigation</span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                        </button>
                    </div><!--navbar-header-->
                </div><!--container-->

            </div><!--navbar-->

        </div><!--navbar-wrapper-->

1 个答案:

答案 0 :(得分:0)

You Bootstrap CSS isn't being loaded. Inspect the page to see if this is showing up / check the path in your file structure. (you also you have jQuery loading twice and no Bootstrap JS in the footer)

<link href="assets/css/bootstrap.min.css" rel="stylesheet">