twitter启动下拉菜单不工作 [英] twitter bootstrap dropdown menu not working

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

问题描述

我有一个我正在处理的项目,由于某种原因,我无法获得下拉菜单在我的菜单上工作。我已经包含了正确的文件,这让我相信这是一个问题在我的代码。



这是我的页面在操作: https://git.jobud9.com/ (请尝试菜单右侧的下拉菜单,也不要忘记浏览器会发出提示,因为



以下是代码的强大功能:

 < li class =dropdown> 
< a href =#class =dropdown-toggledata-toggle =dropdown>
Account
< b class =caret>< / b>
< / a>
< ul class =dropdown-menu>
< li> hi< / li>
< / ul>
< / li>非常感谢提前!

解决方案

您的html代码是正确的。也许你忘了附加一个脚本?查看此下拉js


I've got a project I'm working on and for some reason, I can't get the dropdowns to work on my menu. I've included the proper files which leads me to believe it's a problem in my code.

Here's my page in action: https://git.jobud9.com/ (try the dropdown on the right side of the menu. Also don't mind the prompt your browser will issue because my certificate approval's still pending.)

And here's the code powering it:

<li class="dropdown">
    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
        Account
        <b class="caret"></b>
    </a>
    <ul class="dropdown-menu">
        <li>hi</li>
    </ul>
</li>

Thanks much in advance!

解决方案

Your html code is correct. Maybe you forgot to attach a script? Look this dropdown js

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

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