element饿了么ui表格选中后高亮颜色修改

element表格单选选中状态下背景色太浅,为了让选中的数据更突出一些,只能自定义颜色去覆盖默认的颜色,我的表格是斑马纹的,可能非斑马的还不适用

.el-table--striped .el-table__body tr.el-table__row--striped.current-row td, 
.el-table__body tr.current-row>td {
	background-color: #ffec8b;
}

如果觉得鼠标滑过高亮显示的颜色也太淡,也可以替换一下

.el-table--enable-row-hover .el-table__body tr:hover>td{
	background-color: #9FB6CD;
}

猜你喜欢

转载自blog.csdn.net/songshuguowang/article/details/83374856