刚开始尝试着用这个方法解决不起作用
.el-table--enable-row-hover .el-table__body tr:hover > td.el-table__cell {
background-color: transparent;
color: #000!important;
}
后来换成这个方案,就可以了
.el-table .el-table__body tr:hover {
background-color: transparent!important; /* 你想要的背景色 */
color: #000!important;
}
.el-table__body {
tr:hover > td {
background-color: transparent!important; /* 你想要的背景色 */
color: #000!important;
}
}