我有 twitter 引导手风琴控件,它有三行。我想要实现的是,例如,如果在 url 查询字符串中有参数,比如手风琴 = 1、手风琴 = 2 或手风琴 3,则在页面加载时扩展适当的手风琴。这是我的标记:
<div class="accordion" id="accordion2">
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseOne">
Accordion One
</a>
</div>
<div id="collapseOne" class="accordion-body collapse" style="height: 0px; ">
<div class="accordion-inner">
<!-- Content One Begin -->
<!-- Content One End -->
</div>
</div>
</div>
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseTwo">
Accordion Two
</a>
</div>
<div id="collapseTwo" class="accordion-body collapse" style="height: 0px; ">
<div class="accordion-inner">
<!-- Annuity Policy Content Begin -->
<!-- Annuity Policy Content End -->
</div>
</div>
</div>
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseThree">
Accordion Three
</a>
</div>
<div id="collapseThree" class="accordion-body collapse" style="height: 0px; ">
<div class="accordion-inner">
</div>
</div>
</div>
</div>
欢迎任何建议,在此先感谢。