来自mysql的加载数据未显示在折叠的bootstrap手风琴中。 它确实显示是否删除了类崩溃。
<div class="accordion" id="accKarin">
<div class="accordion-group">
<div class="accordion-heading"> <a class="accordion-toggle" data-toggle="collapse" data-parent="#accKarin" href="#group1Karin"> <img src="img/karin.png" style="width:120px;" alt="Karin" /> <b>Karin </b></a>
</div>
<div id="group1Karin" class="accordion-body collapse">
<div class="accordion-inner"><?php $FP->Cms->display_block("index_karin", "wysiwyg"); ?>
</div>
</div>
</div>
</div>
如何让它按预期工作?
答案 0 :(得分:0)
将in
添加到collapse
类,如下所示:
<div id="group1Karin" class="accordion-body collapse in">