Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Twitter bootstrap 引导3级菜单和延迟_Twitter Bootstrap - Fatal编程技术网

Twitter bootstrap 引导3级菜单和延迟

Twitter bootstrap 引导3级菜单和延迟,twitter-bootstrap,Twitter Bootstrap,我为引导的3级菜单找到了此解决方案: 它可以工作,但当您将鼠标移到元素上时,会有一个可怕的延迟。下拉div仍然保持可见1-2秒,这是真正的痛苦 我的站点在这里:如果您查看jquery.smartmenus.js文件中第1110到1114行的底部,您将看到以下代码 showTimeout: 250, // timeout before showing the sub menus hideTimeout: 500, // tim

我为引导的3级菜单找到了此解决方案:

它可以工作,但当您将鼠标移到元素上时,会有一个可怕的延迟。下拉div仍然保持可见1-2秒,这是真正的痛苦


我的站点在这里:

如果您查看jquery.smartmenus.js文件中第1110到1114行的底部,您将看到以下代码

    showTimeout:        250,        // timeout before showing the sub menus
    hideTimeout:        500,        // timeout before hiding the sub menus
    showDuration:       0,      // duration for show animation - set to 0 for no animation - matters only if showFunction:null
    showFunction:       null,       // custom function to use when showing a sub menu (the default is the jQuery 'show')
请参阅行hideTimeout:500,将该数字调低到200,您将调整超时延迟

如果你看一下文件注释,你会发现延迟是有原因的,所以不要完全删除它

// hide with a delay to prevent triggering accidental unwanted click on some page element

你应该发布一些相关的代码,并提供关于这个问题的更多细节,包括你试图解决它的方法。只需转到这个URL->悬停在下拉列表上,你就可以看到延迟。下拉列表仍然打开,只是在我的网站上链接。