这是我的问题……你能帮帮我吗?
$(".button").hover(function(){ $('.class').css({opacity: 1.0,visibility: "hidden"}).animate({opacity: 0},1200); },function(){ $('.class').css({opacity: 0.0,visibility: "visible"}).animate({opacity: 1},1200); });
它只在出现时动画.