2010-04-16 54 views
1

我想用.animate時.bind('click')觸發改變顏色觸發時使用.animate顏色,使用jQuery我想使用jQuery

$('#selector').animate({width:'2.5%'},'slow').css('background-color','#F2F2F2'); 

<style> 
#selector{ 
background-color:#CCCCCC; 
} 
</style> 

感謝 讓

+0

[jQuery animate backgroundColor]的可能重複(http://stackoverflow.com/questions/190560/jquery-animate -背景顏色) – mercator 2010-12-03 10:09:05

回答