我创建了动态背景鼠标悬停此代码的工作,但它不工作,只改变为其他的背景,但是当我使用功能animate
不显示效果:jQuery的动画不为我
$(".b_header").mouseover(function() {
$(this).css("background-image","url(images/bot/head_down.png)");
/*
Also I've tried other effects and nothing
$(this).css({backgroundPosition: "0 0"});
$(this).animate(
{backgroundPosition:"(-20px -53px)"},
{duration:500});
*/
$(this).animate({ opacity: 5 }, 3000);
});
[jquery animate background position]的可能的重复(http://stackoverflow.com/questions/5171080/jquery-animate-background-position) – epascarello 2012-08-03 17:54:52
'opacity'从0变为1. – 2012-08-03 17:55:11
'opacity'从'0' (透明)到'1'(不透明) – Mathletics 2012-08-03 17:55:13