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