如何在index.php里面设定style样式 [ 2.0 版本 ]
我想在index.php中把第一列的宽度设定为100px大小,要怎么写代码
index.php代码如下:
'columns' => [
['class' => 'yii\grid\CheckboxColumn'],
[
'attribute' => 'sort',
'format' => 'raw',
'value' => function($model){
return Html::textInput("sorts[{$model->id}]", $model->sort, ['style'=>'width:40px']);
}
],
]
最佳答案
其他 0 个回答
没有找到数据。
辰枫夜雨
注册时间:2015-08-11
最后登录:2017-06-23
在线时长:18小时59分
最后登录:2017-06-23
在线时长:18小时59分
- 粉丝10
- 金钱0
- 威望0
- 积分180