方法一:
<el-table :header-cell-style="rowClass">
.....
</el-table>
methods:{
rowClass({row,column,rowIndex}){
if(rowIndex==0){
return 'border:1 px solid #91c8fb';
}
}
}
方法二:
<el-table :header-cell-style="{background:'#F3F4F7'}"></el-table>