![cover](https://img-blog.csdnimg.cn/52cfa90437f44f268eece1f383a10c97.png)
VUE el-table设置表格表头居中,内容列居中/左对齐/右对齐
统一设置设置表头居中 加上【:header-cell-style="{'text-align':'center'}"】统一设置设置内容列居中 加上【:cell-style="{'text-align':'center'}"】在每个el-table-column标签上边设置。
·
1、
统一设置设置表头居中 加上【:header-cell-style="{'text-align':'center'}"】
统一设置设置内容列居中 加上【:cell-style="{'text-align':'center'}"】
2、
在每个el-table-column标签上边设置 align="center"
更多推荐
所有评论(0)