1
我想用.animate時.bind('click')
觸發改變顏色觸發時使用.animate顏色,使用jQuery我想使用jQuery
$('#selector').animate({width:'2.5%'},'slow').css('background-color','#F2F2F2');
<style>
#selector{
background-color:#CCCCCC;
}
</style>
感謝 讓
[jQuery animate backgroundColor]的可能重複(http://stackoverflow.com/questions/190560/jquery-animate -背景顏色) – mercator 2010-12-03 10:09:05