gpt4 book ai didi

css - Bootstrap 3 中的导航栏折叠不起作用

转载 作者:行者123 更新时间:2023-11-28 06:20:43 25 4
gpt4 key购买 nike

我有一些带有 Twitter Bootstrap 的以下 HTML 代码...

<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="col-sm-4">
<a href="#"><img src="img/logo.png" class="img-responsive"/></a>
</div>

<div class="col-sm-8 col-sm-12">
<div class="col-sm-3 pull-right">
<ul class="social pull-right ul-social-link">
<li style="background: none"> <a href="#"> <i class=" fa fa-facebook">   </i> </a> </li>
<li style="background: none"> <a href="#"> <i class="fa fa-twitter">   </i> </a> </li>
<li style="background: none"> <a href="#"> <i class="fa fa-google-plus">   </i> </a> </li>
</ul>
</div>
<div class="col-sm-8 pull-right">
<div class="col-md-5 pull-right text-right">
<p class="contact"><a href="#"><span class="glyphicon glyphicon-phone-alt" aria-hidden="true"></span> +912345678910</a></p>
</div>
<div class="col-sm-5 pull-right">
<p class="contact"><a href="#"><span class="glyphicon glyphicon-envelope" aria-hidden="true"></span> mail@indtechhc.com</a></p>
</div>
</div>
<div class="clearfix"></div>
<div class="col-sm-12">
<button class="navbar-toggle" data-toggle="collapse" data-target=".navHeaderCollapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<div class="collapse navbar-collapse navHeaderCollapse">
<ul class="nav navbar-nav navbar-right">
<li class="active"><a href="#">Home</a><li>
<li><a href="#">We are</a><li>
<li><a href="#">Products</a><li>
<li><a href="#">About us</a><li>
<li><a href="#">Contact us</a><li>
</ul>
</div>
</div>
</div>
</div>
</nav>

但是当我触发折叠按钮时它不起作用!请指教。

最佳答案

确保包含 jquery.js 并且它在 bootstrap.min.js 之前

关于css - Bootstrap 3 中的导航栏折叠不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35612385/

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