点击的时候,按钮会变橙色,松开变回白色。处于点击状态时,离开会变回白色,进去又为橙色。但松开后,离开和进入的效果被保存到css了。怎么让完成一次点击事件后,无效掉进入与退出的效果。$(".bottom.button").on({mousedown:function(){$(this).css("background-color","#FD9917").css("color","white").on({mouseenter:function(){$(this).css("background-color","#FD9917").css("color","white")},mouseleave:function(){$(this).css("background-color","white").css("color","black")}})},mouseup:function(){$(this).css("background-color","white").css("color","black")}})
largeQ
相关分类