私念 2017-11-20 21:06:01 1852次浏览 1条回复 0 0 0
<div  class="form-group">
    <h3><?php
foreach ( $subjectSorts as $sid=>$subjectSort) {
    if ($sid == 0) {
        $url = Url::toRoute(true);
    } else {
        if ($subjectSort['id'] == 0) {
            $url = 'javascript:void(0);';
        } else {
            $url = Url::to(['index','sid' => $sid]);
        }
    }
    ?>
    <a class="form-group-item <?=  active  ?>" href="<?=$url?>"><?= $subjectSort['labelName']?></a><?="&nbsp;&nbsp;"?>
<?php }?></h3>
</div>

QQ图片20171120210504.png

这个a标签 怎么 让他选中就激活

不好意思 菜鸟

您需要登录后才可以回复。登录 | 立即注册