gpt4 book ai didi

jquery - Bootstrap 3 导航栏折叠问题

转载 作者:行者123 更新时间:2023-12-01 06:48:06 24 4
gpt4 key购买 nike

这是我正在使用的代码:

<div class="navbar-wrapper">
<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="#nav-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>

<a class="navbar-brand" href="index.html">Project name</a>
</div>
<div class="collapse navbar-collapse" id="#nav-collapse">
<ul class="nav navbar-nav">
<li class="active"><a href="index.html">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="work.html">Work</a></li>

</ul>
<ul class="nav navbar-nav navbar-right">

<li><a href="#modal-contact-form" data-toggle="modal" data-target="#modal-contact-form">Contact</a></li>

</ul>

</div><!--/.navbar-collapse -->
</div>
</div>
</div>

问题是我无法点击 3 个图标栏!有什么解决办法吗?

我尝试了不同的导航栏解决方案,我什至从 bootstrap github 安装了一个,但没有成功!

提前致谢!

最佳答案

ID:

<div class="collapse navbar-collapse" id="#nav-collapse">

应该是:

<div class="collapse navbar-collapse" id="nav-collapse">

<强> Demo

关于jquery - Bootstrap 3 导航栏折叠问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20152916/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com