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

前端 未结 0 1394
悲&欢浪女
悲&欢浪女 2021-02-11 21:08

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

div.cls {
color:blue;
}

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

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