0
任何想法在如何解决这个问题上都会很棒。基本上它和子菜单一样。当我将鼠标移到按钮上时,保留另一个div显示的块,但如果我要翻转它,则关闭块元素
$(".button").on({
mouseenter: function (e) {
//display my other div as a block element and fade it in
},
mouseleave: function() {
//if my mouse leaves that block element then fade it out.
}
});
我不需要“othen-div”淡出“.button”mouseleave。一旦可见,我需要淡出,鼠标是否会滚下去 – user992731