How to prevent two same color for tree nodes?

后端 未结 0 884
时光取名叫无心
时光取名叫无心 2021-02-04 08:57

I try to change backgraund color for each tree node like this:

.el-tree-node {
        &:nth-child(2n + 1) {
            background: #fafafa;
        }
               


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题