我知道,内联样式是“邪恶的”,但是有用javascript(jQuery动画)插入html的。那么,这可能吗?
最佳答案
这个:
<div style="background: red;">
The inline styles for this div should make it red.
</div>
可以被覆盖:
div[style] {
background: yellow !important;
}
您可以将 !important
添加到任何 css 属性
关于javascript - 如何覆盖 print css 中的内联样式?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5935761/