合规国际互联网加速 OSASE为企业客户提供高速稳定SD-WAN国际加速解决方案。 广告
### 配置项`css` > 加载额外的css样式 > 传参详情查看`setCss()` 示例代码: ~~~ return ViewBuilder::table() ->setTitle('会员列表') ->setPartial() ->setCss('body{color:red!important;}') ->setHideCheckbox(true) ->setColumns([ 'password', 'username' => table_column_helper('用户名', ['style' => ['min-width' => '100px']]), 'an_mobile' => table_column_helper('电话', ['style' => ['min-width' => '100px']], function ($item) { return '+' . $item['an'] . ' ' . $item['mobile']; }), 'email' => table_column_helper('邮箱', ['style' => ['min-width' => '200px']]), ]) ->setQuery(function () { $query = AdminUser::find()->select(['id', 'username', 'password', 'email', 'an', 'mobile', 'status']); return $query; }) ->render($this); ~~~ 示例图示: ![](https://img.kancloud.cn/ce/a0/cea08c08a91cf6852575ff27d42791e1_1900x868.png)