form表单修改label样式

<?php $form = ActiveForm::begin([

    'options'=>['enctype'=>'multipart/form-data','class' => 'form-horizontal'],
    'fieldConfig' => [
        'template' => "{label}\n<div class=\"col-lg-5\">{input}</div>\n<div class=\"col-lg-3\">{error}</div>",
        'labelOptions' => ['class' => 'col-lg-1 control-label'],  //修改label的样式
    ]
]); ?>

posted on 2016-12-29 16:13  跳动的汗水  阅读(2058)  评论(0编辑  收藏  举报

导航