【发布时间】:2015-07-02 20:51:36
【问题描述】:
我在 Bootstrap Menu hOver 中使用 jQuery 来延迟关闭菜单。
但现在的问题是,当我以较低的分辨率检查相同内容时,仍然会出现悬停状态。我想停止低分辨率下拉菜单的悬停状态...例如:768px。不幸的是,我不能对代码进行太多更改。 :(
jQuery
/* Time Delay on Main Menu */
/* Main Menu */
$('ul.nav li.dropdown').hover(function() {
$(this).find('.pulse-dropdown').stop(true, true).delay(0).fadeIn(0);
}, function() {
$(this).find('.pulse-dropdown').stop(true, true).delay(300).fadeOut(300);
});
/* Sub Menu */
$('li.dropdown-submenu').hover(function() {
$(this).find('.pulse-dropdown2').stop(true, true).delay(0).fadeIn(0);
}, function() {
$(this).find('.pulse-dropdown2').stop(true, true).delay(200).fadeOut(200);
});
【问题讨论】: