element 树形控件 点击当前节点,鼠标再离开后,当前节点就是个白色的背景颜色,我试了很多方法都不能完全性解决这个问题,最后是
>>>.el-tree-node:focus > .el-tree-node__content {
background-color: #06518c;
}
.el-tree-node__content:active {
background-color: #06518c !important;
}
一起设置才得以解决
>>>.el-tree {
background: transparent;
color: #FFFFFF
}
>>>.el-tree-node__content:hover {
background-color: #06518c;
}
>>>.el-tree-node.is-current > .el-tree-node__content {
background-color: #06518c !important;
}
>>>.el-tree-node:focus > .el-tree-node__content {
background-color: #06518c;
}
.el-tree-node__content:active {
background-color: #06518c !important;
}
}