CSS more short query

前端 未结 5 1785
独厮守ぢ
独厮守ぢ 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 07:16

    You could use some kind of CSS pre-processors like Shaun Inman’s CSS server-side pre-processor to convert this:

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

    into this:

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

    But CSS itself has no such syntax.

自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题