作者:牧家三少 | 来源:互联网 | 2023-01-30 14:15
Itriedtoinjectastyleusingthiscode:我尝试使用以下代码注入样式:document.body.style.colorgreen!importan
I tried to inject a style using this code:
我尝试使用以下代码注入样式:
document.body.style.color='green!important';
Per the CSS cascade ref, by applying the !important
rule I can trump origin and specificity.
根据CSS级联引用,通过应用!important规则,我可以胜过原点和特异性。
I tried to inject this using Firefox Firebug into www.google.com however no luck.
我尝试使用Firefox Firebug将其注入www.google.com,但没有运气。
How do I inject a foreground color with an !important
rule?
如何使用!important规则注入前景色?
6 个解决方案