I'm unable to inject a style with an “!important” rule

前端 未结 7 1511
星月不相逢
星月不相逢 2020-12-05 04:19

I tried to inject a style using this code:

document.body.style.color=\'green!important\';

Per the CSS cascade ref, by applying the !i

7条回答
提交回复
热议问题