<el-table :data="tableData" stripe style="width: 100%">
<el-table-column prop="date" label="日期" width="180"> </el-table-column>
<el-table-column prop="name" label="姓名" width="180"> </el-table-column>
<el-table-column prop="address" label="地址"> </el-table-column>
</el-table>
//关键代码 stripe属性
::v-deep .el-table--striped .el-table__body tr.el-table__row--striped td {
background: #1e116d;
color:yellow
}
::v-deep .el-table td,
.building-top .el-table th.is-leaf {
border: none;
/* color: white; */
}
09-19
1956
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
04-07
2040
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
07-21
769
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)