elementUI 表格内容居中
<el-table
:data="list"
style="width: 100%"
:cell-style="{ textAlign: 'center' }"
:header-cell-style="{ textAlign: 'center' }"
>
加上这两行就可以了
:cell-style="{ textAlign: 'center' }"
:header-cell-style="{ textAlign: 'center' }"
效果