<?php $form = ActiveForm::begin([ 'options'=>['class' => 'form-horizontal row-border','enctype'=>"multipart/form-data"], 'fieldConfig'=>[ 'options'=>['class'=>'row cl'],//改变class类 ]]); ?>