1. 在 el-table组件中添加属性
<el-table :cell-style="changeCellStyle"> ......... </el-table>
2. 方法中: 进行相应修改
changeCellStyle (row, column, rowIndex, columnIndex) {
if(row.column.label === "列标题"){
return 'color: blue' // 修改的样式
}else{
return ''
}
}