Nesting selectors - possible?

后端 未结 3 1449
再見小時候
再見小時候 2021-01-19 03:43

Suppose I have a div with a bunch of stuff inside:

    3条回答
    •  渐次进展
      2021-01-19 04:28

      Nesting CSS selectors is not possible with standard CSS, but there are other tools like SASS, LESS, and XCSS which allow you to write rules in the way you're describing.

      These tools generally "compile" into real CSS which handles converting the nested selector syntax into real CSS rules.

    提交回复
    热议问题