Yii2表格输入调整以填充整个宽度

时间:2016-12-10 14:24:03

标签: php html css yii2 yii2-advanced-app

我有这个表单输入,我希望它填充整个div但它失败

            <?php $form = ActiveForm::begin(); ?>

                <div class="row">

                    <div class="col-md-8" >
                        <?= $form->field($model, 'email')->textInput(["placeholder"=>
                     "your email address", "width"=>"100%;"])- >label(false)  //this fails 
                       ?>

                    </div>
                    <div class="col-md-2">
                        <input type="submit" name="subscribe"
                         class="nl-submit"  value="JOIN US">
                    </div>
                </div>
                <?php ActiveForm::end(); ?>

我需要添加到输入字段,因为它无法适应100%

0 个答案:

没有答案