Jquery 鼠标指针/鼠标移动和褪色问题

Jquery 鼠标指针/鼠标移动和褪色问题,jquery,fading,Jquery,Fading,我在div上使用mouseenter/mouseleave来淡入淡出 问题是,当快速悬停div时,它会导致某种队列,其中div会持续衰落几次 似乎我需要停止像“在mousenter上然后停止淡出”这样的效果 有什么想法吗?您可以使用.stop(),它记录在这里: 作为fadeIn()。。我很确定……谢谢你的帮助!:) $('#hoverme-stop-2').hover(function() { $(this).find('img').stop(true, true).fadeOut();

我在div上使用mouseenter/mouseleave来淡入淡出

问题是,当快速悬停div时,它会导致某种队列,其中div会持续衰落几次

似乎我需要停止像“在mousenter上然后停止淡出”这样的效果

有什么想法吗?

您可以使用.stop(),它记录在这里:


作为
fadeIn()。。我很确定……谢谢你的帮助!:)
$('#hoverme-stop-2').hover(function() {
  $(this).find('img').stop(true, true).fadeOut();
}, function() {
  $(this).find('img').stop(true, true).fadeIn();
});