简体   繁体   English

为什么下拉菜单需要整整一秒钟才能下拉?

[英]Why do my drop down menus take a full second to drop down?

I'm working to develop a new site and I've noticed that my menus drop down slower then those elsewhere. 我正在开发一个新站点,但我发现菜单的下拉速度比其他地方慢。

The menu I'm referring to is on the top at [URL redacted]: 我指的菜单位于[编辑的URL]的顶部:
Men's | Women's | Youth | Type |

Your Menu script has a default delay parameter of 350 . 您的菜单脚本的默认delay参数为350

You may want to change this parameter. 您可能要更改此参数。

您的下拉列表是由javascript控制的,尤其是menu.js,其中的值是: delay: 350尝试根据自己的喜好进行调整。

It might help if you knew your way around the scripts you're using on your site. 如果您了解自己在网站上使用的脚本的方式,可能会有所帮助。

If you look at your file in /server/js/menu.js , set your delay option to something less than 350. 如果您在/server/js/menu.js中查看文件,请将您的delay选项设置为小于350的值。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM