CSS more short query

前端 未结 5 1821
独厮守ぢ
独厮守ぢ 2021-01-26 06:45

For example I have a CSS selector:

#spotlightPlayer .container .commands.over span,
#spotlightPlayer .container .commands.over ul,
#spotlightPlayer .container .c         


        
5条回答
  •  甜味超标
    2021-01-26 06:59

    You might check out Sass. It has a lot of helpful little features that let you make your style sheets more declarative than the normal CSS syntax allows. It handles deeply nested tags in a very natural way. In Sass, this would be:

    #spotlightPlayer .container. commands.over
      span, ul, ul li
        :clear both
    

提交回复
热议问题