首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

Jquery中如何用CSS方法实现IE7中的!important

2013-12-20 
求助Jquery中怎么用CSS方法实现IE7中的!important$(a).css({ left:50%,top:50%,margin-left:-2

求助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;");

热点排行