Is there a shortcut for setting !important on every property in a CSS file?

后端 未结 4 473
情歌与酒
情歌与酒 2021-01-14 00:00

I have a large CSS file for which I would like to add !important to every CSS property. Is there one-line shortcut to make a whole .css file !important

4条回答
  •  醉梦人生
    2021-01-14 00:08

    No. Using !important should only be in specific no-other-way cases. It is not intended to be applied to a whole stylesheet document.

    If you are thinking about overwriting so many rules why not just not include the rules you want to overwrite?

提交回复
热议问题