How to reference nested classes with css?

前端 未结 5 1637
故里飘歌
故里飘歌 2021-02-20 02:04

When using css, how can I specify a nested class.

Here is my html code:

5条回答
  •  没有蜡笔的小新
    2021-02-20 02:26

    Selectors for classes in CSS need a ".":

    .box1 .box-body i{/*your style*/}
    

    Maybe you should take a look at this page:

    Selectors

提交回复
热议问题