表头水平居中:给 el-table 标签绑定header-cell-style 属性
<el-table :header-cell-style="{'text-align':'center'}"></el-table>
表格内容水平居中:给 el-table 标签绑定cell-style 属性
<el-table :cell-style="{textAlign:'center'}"></el-table>
时间:2021-03-16 15:40:48
<el-table :header-cell-style="{'text-align':'center'}"></el-table>
<el-table :cell-style="{textAlign:'center'}"></el-table>