Bootstrap 3简单的下拉列表无法正常工作

Jac*_*ack 2 css twitter-bootstrap twitter-bootstrap-3

当尝试调整到Bootstrap 3时,我遇到了以下问题.

当我点击命名的按钮F,我想HomeNot Home展现出来,但目前没有.

是我正在学习的视频.

<div class= "navbar navbar-inverse navbar-static-top">
    <div class="container">
        <a class= "navbar-brand">Jackdh</a>
        <button class="navbar-toggle" data-toggle="collapse" data-target=".navHeaderCollapse"> F 
        </button>
        <div class ="collapse navbar-collapse navHeaderCollapse">
            <ul class = "nav navbar-nav navbar-right">
                <li><a href="#">Home</a></li>
                <li><a href="#">Not Home</a></li>
            </ul>   
        </div>
    </div>
</div>
Run Code Online (Sandbox Code Playgroud)

Mar*_*der 7

我敢肯定,你根本忘了加bootstrap.js和也jquery.包含它,一切都适合我.