我正在使用带有 Yii 框架的引导扩展来为内容设置选项卡。这是一个例子。这些选项卡在 Firefox 中运行良好,但在 Google Chrome 和 Safari 中,选项卡的行为不同,它们随着页面加载而加载,但在单击选项卡后,它们会被选中,但内容不显示。
以下是这些选项卡的代码:
<?php $this->widget('bootstrap.widgets.BootTabbable', array(
'type'=>'tabs', // 'tabs' or 'pills'
'tabs'=>array(
array('label'=>'Marionettisti', 'content'=>$this->renderPartial('staff/_view_staff_marionettisti', array('model'=>$model),$this),'active'=>true),
array('label'=>'Voci e Musica', 'content'=>$this->renderPartial('staff/_view_staff_vociemusica', array('model'=>$model),$this)),
array('label'=>'Laboratorio', 'content'=>$this->renderPartial('staff/_view_staff_laboratorio', array('model'=>$model),$this)),
array('label'=>'Direttore Artistico', 'content'=>$this->renderPartial('staff/_view_staff_direttore_artistico', array('model'=>$model),$this)),
),
)); ?>
任何想法?