我已经制作了手风琴,但两个分开的工作分开了。我希望有:当我点击一个标题时,打开一个是关闭的,但这里打开不关闭.. 我的错是什么?
<div class="accordions_container">
<div class="accordion" id="accordions_491">
<div class="accordion-group">
<div class="accordion-heading"><a class="accordion-toggle" data-toggle="collapse" data-parent="#accordions_491"
href="#accordion_title_toto491">accordion title toto</a>
</div>
<!-- .accordion-heading -->
<div id="accordion_title_toto491" class="accordion-body collapse in">
<div class="accordion-inner">Content of the accordion here</div>
<!-- .accordion-inner -->
</div>
<!-- .accordion-body -->
</div>
<!-- .accordion-group -->
<div class="accordion-group">
<div class="accordion-heading"><a class="accordion-toggle" data-toggle="collapse" data-parent="#accordions_491"
href="#accordion_titi491">accordion titi</a>
</div>
<!-- .accordion-heading -->
<div id="accordion_titi491" class="accordion-body collapse ">
<div class="accordion-inner">Content of the accordion here</div>
<!-- .accordion-inner -->
</div>
<!-- .accordion-body -->
</div>
<!-- .accordion-group -->
</div>
<!-- .accordion -->
答案 0 :(得分:0)
提供的标记按照jQuery 1.8.2,BS 2.1.1的预期工作。
也许其他脚本正在干扰。