关于网友提出的“关于js对css中important的操作”问题疑问,本网通过在网上对“关于js对css中important的操作”有关的相关答案进行了整理,供用户进行参考,详细问题解答如下:
问题:关于js对css中important的操作
描述:在FF中有this.style.setProperty('background-color', 'blue', 'important')的方法对css的important的定义。
但是在IE中有什么方法?
这里有于特殊原因不希望用this.style.cssText = "background: !important";来实现。希望用this.style.background="";来实现,但这样的话,怎么加important呢??
以上介绍了“关于js对css中important的操作”的问题解答,希望对有需要的网友有所帮助。
本文网址链接:http://www.codes51.com/itwd/1182546.html