【发布时间】:2012-07-25 13:17:48
【问题描述】:
我正在使用 bootstrap extention 和 Yii 框架来为内容设置标签。 Here is an example。这些选项卡在 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)),
),
)); ?>
有什么想法吗?
【问题讨论】:
标签: google-chrome safari yii twitter-bootstrap yii-extensions