2017-03-06 11:46:02 2184次浏览 1条回答 0 悬赏 10 金钱
<?php
echo yii\bootstrap\Tabs::widget([
    'items' => [
        [
            'label' => 'One',
            'content' => 'Anim pariatur cliche...',
            'active' => true
        ],
        [
            'label' => 'Two',
            'content' => 'Anim pariatur cliche...',
         ],
 ],
]);
?
  • 回答于 2017-03-06 16:30 举报
    <?php
    echo \yii\bootstrap\Tabs::widget([
        'items' => [
            [
               'label' => 'One',
                'content' => 'Anim pariatur cliche...',
                'active' => true
            ],
            [
                'label' => 'Two',
                'content' => 'Anim pariatur cliche...',
            ]
        ]
    ])
    ?>
    
    2 条回复
    回复于 2017-03-06 21:00 回复

    我把它放在视图里为什么没有结果呀,

    回复于 2017-03-14 09:24 回复

    不可能的,有效果的。你不信把第二个content的值换成123再试试。

您需要登录后才可以回答。登录 | 立即注册
tw1996
见习主管

tw1996

注册时间:2016-03-13
最后登录:2020-03-25
在线时长:37小时2分
  • 粉丝3
  • 金钱0
  • 威望0
  • 积分370

热门问题