【发布时间】:2012-08-07 02:39:37
【问题描述】:
如果有使用 !important 的 CSS 规则,有没有办法删除 !important 规则,以便我可以使用 JS 或 jQuery 进行进一步的下游样式更改?
theirs.css
div.stubborn { display: none !important; }
mine.js
$('.stubborn').fadeIn(); // won't work because of !important flag
不幸的是,我无法控制应用 !important 规则的样式,因此我需要解决方法。
【问题讨论】:
标签: javascript jquery css