简体   繁体   English

Bootstrap 3-折叠导航栏和子导航栏

[英]Bootstrap 3 - Collapse Navbar and Sub Navbar

https://www.bootply.com/t29IadMjRG https://www.bootply.com/t29IadMjRG

I need some help trying to figure out how to collapse a double navbar setup for 1-col or for mobile using bootstrap. 我需要一些帮助,以试图弄清楚如何折叠使用1-boot或使用bootstrap的移动设备的双导航栏设置。 Ideally I'd like both navbars to collapse into the same collapsed unified menu. 理想情况下,我希望两个导航栏都可以折叠到同一折叠的统一菜单中。

I've been copying and pasting and editing to try and figure this out. 我一直在复制,粘贴和编辑以尝试解决此问题。

One way that you can do it is to create a different navbar for mobiles with your single options. 一种方法是使用单个选项为手机创建一个不同的导航栏。 You can then use visible-xs-block and hidden-xs to show/hide accordingly. 然后,您可以使用visible-xs-block和hidden-xs进行相应的显示/隐藏。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM