关于element中表格头部样式的问题
在el-table
中加上:header-cell-style
具体操作,如我想把字体变成黑色
<el-table :header-cell-style="{color:#000'}"></el-table>
或者
<el-table :header-cell-style="styleObj"></el-table>
data(){
return{},
methods:{
styleObj(){
return 'background:#ffffff;color:#000;'
}
}
}