我想動態更改懸停事件中的鏈接顏色。到目前爲止,我得到了下面的代碼,但它不工作。任何建議爲什麼?在我的oppinion這似乎是正確的...jQuery:動畫文本顏色
$('.fadelink').hover(function(){
$(this).animate({
color: '#333'
}, 600);
},
function(){
$(this).animate({
color: '#999'
}, 600);
});
如果你不想過於複雜,只需淡出元素,改變顏色並將其淡入。最簡單的選項。 – f0x
可能重複[jQuery:輸入字段的動畫文字顏色?](http://stackoverflow.com/questions/1354277/jquery-animate-text-color-for-input-field) – Neal
試試這個http:// jqueryui .com/demos/animate/ –