- 需求:修改table背景为透明色,鼠标悬浮时字体为白色
- 代码
// 修改表格字体
>>>.el-table
background-color: transparent
color #fff
thead
color #fff
// 鼠标悬浮该行时的背景颜色
>>>.el-table--enable-row-hover .el-table__body tr:hover > td
background-color #409eff
// 修改表格背景颜色
>>>.el-table, >>>.el-table__expanded-cell
background-color: transparent;
>>>.el-table th,
>>>.el-table tr,
>>>.el-table td
background-color: transparent;