当bootstrap accordion设置为在init时崩溃时,内容不显示

时间:2013-08-05 14:28:05

标签: php twitter-bootstrap accordion collapse

来自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" />&nbsp;&nbsp;<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>

如何让它按预期工作?

1 个答案:

答案 0 :(得分:0)

in添加到collapse类,如下所示:

<div id="group1Karin" class="accordion-body collapse in">