Nested classes selectors

后端 未结 6 1001
你的背包
你的背包 2021-02-19 14:06

If I have something like this in my HTML

    
Welcome on my web
6条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-19 14:36

    #top .txt is not #top.txt the latter means that the matched element has the id AND the class, while the former means that the matched element has the class, and one of its ancestors element has the id

提交回复
热议问题