2013-03-02 21 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