日期:2014-05-16  浏览次数:20323 次

求助Jquery中怎么用CSS方法实现IE7中的!important

$(a).css({ "left":"50%","top":"50%","margin-left":"-200px!important","margin-top":"-100px!important","margin-top":"0", });


其中的带有:!important的属性不生效啊?怎么办呢?各位有没有好办法?

------解决方案--------------------
$("#tester").css("cssText", "margin-left: -200px!important;");