为什么不切换? [英] Why it does not toggle?
本文介绍了为什么不切换?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经通过vedio turorial使用bootstrap尝试了它,但它并不令人担心
对于小型设备,navbar-header的按钮不会切换。
我尝试过:
< div 类 = 容器 >
< div class = row >
< div class = 容器 >
< div < span class =code-attribute> class = navbar-header >
< a href = # class = navbar-brand > Universal MEdia < / a >
< span 类 = icon-栏 > < / span >
< span class = icon-bar > < / span >
< span cl屁 = icon-bar > ; < / span >
< / div >
< div class = 折叠navbar-collapse id = mynav >
< ul 类 = nav navbar-nav >
< li > < a href = # > Hoome < / a > < / li < span class =code-keyword>> < li > < a href = # > ABout < / a > < / li > < li > < a href = # > 服务< / a > < / li > < li > < a href = # > 课程< / a > < / li > < li > < a href = # > 与我们联系< / a > < < span class =code-leadattribute> / li > < / ul >
< < span class =code-leadattribute> / div >
< ; / div >
< / div >
< / div >
解决方案
如果您从视频教程中获得了代码,那么请返回YouTube(或教程来自的任何地方)并在那里询问。作者应该更好地了解他的代码如何工作 * 我们应该能够并且应该能够比我们更好地帮助你。
*假设这是他的代码,很多视频教程都是由那些不知道他们在做什么的人制作的。
I have tried it using bootstrap through a vedio turorial but it is not woriking
for small device the button of navbar-header doesnot toggle.
What I have tried:
<div class="container">
<div class="row">
<div class="container">
<div class="navbar-header">
<a href="#" class="navbar-brand">Universal MEdia</a>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</div>
<div class="collapse navbar-collapse" id="mynav">
<ul class="nav navbar-nav">
<li><a href="#">Hoome</a></li> <li><a href="#">ABout</a></li> <li><a href="#">Services</a></li> <li><a href="#">Courses</a></li> <li><a href="#">Contact Us</a></li> </ul>
</div>
</div>
</div>
</div>
解决方案
If you got the code from a video tutorial, then go back to YouTube (or wherever the tutorial came from) and ask there. The author should have a much, much better idea how his code works* that we would and should be able to help you better than we could.
* Assuming it's his code, many video tutorials are produced by people who have no idea what they are doing.
这篇关于为什么不切换?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文