解决方案非常简单!只需使用Superfish。js按指示http://users.tpg.com.au/j_birch/plugins/superfish/#getting-started
确保在wordpress中包含superfish、hoverIntent和jQuery。在您的自定义js脚本文件中,类似这样的内容非常有用:
$(\'ul#theidofyourmenu\').superfish({
delay: 600, // This will fire up the hoverIntent
autoArrows: false // Disable this if you don\'t want arrows on toplevel nav links
});
感谢@pixeline对使用Superfish的提示。js公司