jQuery的多级下拉菜单问题 [英] Multilevel Dropdown Menu Issues with Jquery

查看:80
本文介绍了jQuery的多级下拉菜单问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,首先让我说我在编码方面不是很熟练...

So, first let me say I am not highly skilled in coding...

这是我的问题:

我的下拉菜单起作用,但是当第一级鼠标悬停在其上时,它将显示第三级子菜单.当用户选择向下移动时,它将显示整个堆栈,而不是每个单独的级别.我敢肯定这是一个简单的解决方法,但似乎无法实现.我也应该说,该列表是从wordpress菜单中提取的...

My dropdown works, but it displays the third level submenu when the first level is hovered over. It is displaying the whole stack instead of each individual level as a user chooses to move down. I'm sure it's an easy fix, but I can't seem to get it. I should say too, that the list is being pulled from a wordpress menu...

此处

和实时网站此处

推荐答案

您应该更改选择器以将第一级子级设置为

You should change selector to get first level children as

J('>ul', this).slideDown(100);

这篇关于jQuery的多级下拉菜单问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆