$(".menu-container").animate({top:"25px"});
$(".menu-container").animate({top:"-900px"});
$(".windows-container").animate({top:"-730px"});
先生您好..我在jQuery的隊列中有一個問題..我想要做的是jQuery的排隊問題
$(".menu-container").animate({top:"25px"}); ----execute first then after this,
$(".menu-container").animate({top:"-900px"}); --this one and
$(".windows-container").animate({top:"-730px"}); --this one should execute at the same time..
我試過,但它不能正常工作..
$(".menu-container").queue(function(){
$(".menu-container").animate({top:"25px"});
$(".windows-container").animate({top:"-730px"});
$(".menu-container").animate({top:"-900px"});
});
我認爲最後兩行不執行到執行的操作的回調函數..我還沒有看到。菜單容器並沒有設置動畫頂部:0px; – 2010-06-02 17:16:09