element-ui 和element-plus 设置table表头/单元格居中 直接在 el-table标签中 添加样式 第一个 表头标题居中 第二个 单元格内容居中 :header-cell-style=“{ textAlign: ‘center’ }” :cell-style=“{ textAlign: ‘center’ }” 效果图