Dreamweaver沒有說我有任何語法錯誤,所以爲什麼不是我的背景顏色改變?如何動畫()
的jQuery:
$(function() {
$("#contact").hover(function() {
$("#contactform").stop().fadeIn(500);
$(this).stop().animate({
height: "260px",
background: "blue"
});
}, function() {
$("#contactform").stop().fadeOut(500);
$(this).stop().animate({
height: "20px",
});
});
});
如果您想爲顏色添加動畫,您應該加載jQuery UI或爲其提供支持的插件。 – undefined 2013-03-14 22:20:16
我希望我能接受你的評論作爲答案。這工作!謝謝! – Stacy 2013-03-14 22:27:39