CSS more short query

前端 未结 5 1822
独厮守ぢ
独厮守ぢ 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:01

    If all you want is to clean up your CSS, and you don't care about making your HTML messy, apply a class to each span, ul, and ul>li element in the relevant section. You can clear out two extra lines of CSS, but you'll be gaining a lot of weight in HTML cruft. I wouldn't recommend this.

提交回复
热议问题