重要,請參見下面的jQuery的:如何使用jQuery的動畫()函數
我真的想知道我怎麼可以在這個代碼中使用CSS !important
爲height
。
$j('#lveis-wrapper_3').animate({
opacity: 0.0,
height : 200
}, 1200);
的#lveis-wrapper_3
的CSS低於:
#lveis-wrapper_3
{
width: 844px !important;
height: 936px !important;
margin: 0pt 0pt 10px !important;
padding: 0pt !important;
float: none;
}
我無法從height: 936px
出於某些原因刪除!important
...
所以我想改變這種height
通過animate()
jQuery的功能 - 但如何?
唉,所有這些'important' ......一定有辦法重新組織你的代碼... – elclanrs 2012-03-29 18:32:10
@! elclanrs感謝評論:) – MoonLight 2012-03-29 18:41:05