简体   繁体   English

引导手风琴折叠问题

[英]bootstrap accordion collapsing issue

I have tabs menu bottom of the page (footer) which is set to as accordion on responsive (<768px) but it works broken if you try to click accordion links and that's why I want to expanded false on default all accordion must be false.我有页面底部的选项卡菜单(页脚),它设置为响应式手风琴(<768px),但如果您尝试单击手风琴链接,它会损坏,这就是为什么我想在默认情况下扩展 false 所有手风琴必须为 false。 and I'm using tabCollapse plugin and it makes my tab menu to accordion on responsive with this code我正在使用tabCollapse 插件,它使我的选项卡菜单根据此代码进行响应

JS JS

  $('.footer-tabs-to-accordion').tabCollapse();

I tried every way on css and jquery but I couldn't achieve because of I'm new in web design and keen on我在 css 和 jquery 上尝试了各种方法,但我无法实现,因为我是网页设计的新手并且热衷于

You need to add the class .collapsed to the <a> that is using the .accordian-toggle class in your HTML.您需要将.collapsed.collapsed到在 HTML 中使用.collapsed .accordian-toggle类的<a>中。 Something like this:像这样的东西:

<a class="accordion-toggle collapsed" data-toggle="collapse">Popüler Oteller</a>

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

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