我在创建选项卡导航菜单时遇到问题。当我将鼠标悬停在导航项上时,我想下拉一个带有子链接的列表。我正在使用 jquery child()
函数来显示我悬停的选项卡的子链接。
演示:http://jsfiddle.net/GeKv2/5/
当您将鼠标悬停在子链接上时,它似乎向其添加了一个类 active
。我在这里做错了什么?..
最佳答案
$('ul.user_menu li').hover(function() {
//show active tab
$(this).addClass("active");
$("ul", $(this)).show();
}, function() {
$(this).removeClass("active");
$("ul", $(this)).hide();
});
关于javascript - 使用 child() 的 Jquery 导航选项卡下拉列表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6418105/