How can I apply a css rule to all descendants of an elements

前端 未结 0 730
眼角桃花
眼角桃花 2021-02-11 20:57

How can you redefine a class if its in another specific class?

div.cls {
color:blue;
}

div.tst > div.cls {
color:red;
}

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