2013-07-15 17 views

回答

0

设置其他div来display: none在你的CSS和使用jQuery的fadeIn()fadeOut()方法钮开启/关闭:

$(".button").on({ 
    mouseenter: function (e) { 
    $(".other-div").fadeIn(); 
    }, 
    mouseleave: function() { 
    $(".other-div").fadeOut(); 
    } 
}); 

DEMO

+0

我不需要“othen-div”淡出“.button”mouseleave。一旦可见,我需要淡出,鼠标是否会滚下去 – user992731

相关问题