Bootstrap 3简单的下拉不工作 [英] Bootstrap 3 simple dropdown not working

查看:83
本文介绍了Bootstrap 3简单的下拉不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

When trying to adjust to Bootstrap 3, I have encountered the following problem.

当我点击名为 F ,我想要首页不是首页出现,但目前不是。

When I click on the button named F, I would like Home and Not Home to show up, but it does not at the moment.

这是我正在学习的视频。

This is the video I am learning from.

<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>


推荐答案

我确定你只是忘了添加 bootstrap.js 以及 jquery
包括这一点,
一切为我工作

I'm pretty sure that you simply forgot to add bootstrap.js and also jquery. With that included, everything works for me.

这篇关于Bootstrap 3简单的下拉不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆