element-ui 表格标题加背景 斑马线
<el-table
:data="tableData"
stripe
:header-cell-style="{
'text-align': 'center',
background: '#F5F7FA',
color: 'black',
}"
>
<el-table-column label="Peer Name" width="300" align="center">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.num }}</span>
</template>
</el-table-column>
<el-table-column label="Status" width="180" align="center">
<template slot-scope="scope">
<span style="margin-left: 10px">{{ scope.row.username }}</span>
</template>
</el-table-column>
</el-table>