0
我正在嘗試爲我的網站製作菜單。我想要實現菜單項分別在盤旋或關閉時右轉和後轉。但是什麼都沒有發生。 這是我的代碼:jQuery.animate懸停後不工作
$(document).ready(function(){
$(".item").hover(function(){
$(this).animate({
right: "-=100px";
}, "slow";
);
, $(this).animate({
right: "+=100px";
}, "slow";
);
});
});
您需要使用逗號分隔的兩個功能 – Riad 2014-11-22 17:10:34