2013-03-02 59 views

回答

1

不幸的是,toggle()方法只支持3种效果出现,幻灯片和盲目 - 如果你想做左到右,我会建议使用morph()方法,因为你可以把任何样式放在那里,他们会来回改变

例如

// close the div horizontally 
$('firstdiv').morph('width:0px;'); 

//open the div horizontally 
$('firstdiv').morph('width:auto;'); 
+0

谢谢,但不是我一直在寻找:(猜测实在是没有别的办法。 – Crays 2013-03-10 11:33:10