使用animate()的时候,有时候会出现移进移出的闪动问题

怎么解决这种问题呢?在animate()前面需要加上stop()

例如:

$(".nav_list").hover(function(){
    $(".div1").stop().slowDown();
},function(){
    $(".div1").stop().slowUp();
})

 

posted @ 2016-12-20 22:21  以茜为贵  阅读(370)  评论(0编辑  收藏  举报