Make entire CSS sheet !important

前端 未结 2 649
礼貌的吻别
礼貌的吻别 2021-02-12 21:14

Is there a way to make an entire CSS Style sheet take precedence over another? I know you can do the !important but can I do that with one line rather than modify all thousand p

2条回答
  •  情深已故
    2021-02-12 21:56

    Make sure the stylesheet you want is called last (or a specific style you want is called last). For example, using this:

    span { color: red; }
    span { color: blue; }
    

    ...will turn all text in 's blue. Take a look here.

提交回复
热议问题