var routeDeg = 0;
$("#rotateImg").click(function(){
routeDeg = routeDeg + 90;$("#imgId").animate({
aa:routeDeg //目的就是取一个属性值360
},{
step:function(now,fx){
$("#imgId").css({"transform":"rotate("+now+"deg)"})
},
duration:1000
});
});
html对应
<img id="imgId">
<span id="rotateImg"><<旋转 </span>
欢迎加入我的qq群:425783133