$(document).ready(function(){
$('a.nav_menu')
.css({backgroundPosition: "0 0"})
.mouseover(function(){
$(this).animate({
backgroundPosition:"(-650px 0)",
'color': '#000000'
}, {duration:700})
})
.mouseout(function(){
$(this).animate({backgroundPosition:"(0px 0)"}, {duration:900, complete:function(){
$(this).css({backgroundPosition: "0 0"})
}})
})
});
这是什么问题?文字颜色不会更改。如何使用jQuery为文字颜色添加动画?
[jQuery animate backgroundColor]的可能重复(http://stackoverflow.com/questions/190560/jquery-animate-backgroundcolor) – mercator 2010-12-03 10:01:16