解决以上问题在这里插入代码片
//hover样式,注意添加 !important;优先级最高
.ant-table-tbody > tr:hover >.ant-table-cell-fix-left,
.ant-table-tbody > tr:hover >.ant-table-cell-fix-right {
background-color: rgb(115, 122, 122) !important;
}
//selected 样式,注意添加 !important;优先级最高
.ant-table-tbody > tr.ant-table-row-selected >.ant-table-cell-fix-left,
.ant-table-tbody > tr.ant-table-row-selected >.ant-table-cell-fix-right {
background-color: rgb(115, 122, 122) !important;
}
.ant-table-tbody > tr.ant-table-row-selected > td {
background: rgba(180, 255, 255, 0.2)
}
.ant-table-tbody > tr:hover:not(.ant-table-expanded-row)>td {
background: rgba(180, 255, 255, 0.2)
}
.ant-table-tbody > tr:hover:not(.ant-table-cell-fix-right)>td {
background: rgba(180, 255, 255, 0.2)
}
.ant-table-tbody > tr:hover:not(.ant-table-expanded-column)>td {
background: rgba(180, 255, 255, 0.2)
}