如何解决这个问题?点击菜单时再次点击它会弹出没有任何反应! [英] How to fix this problem ? when click menu its pop up when click again nothing happen!

查看:42
本文介绍了如何解决这个问题?点击菜单时再次点击它会弹出没有任何反应!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

点击菜单时再次点击它会弹出任何事情!

when click menu its pop up when click again nothing happen!

function mainmenu() {
    $(" #nav ul").css({ display: "none" });
    $(" #nav li").hover(function () {
        $(this).find('ul:first').css({ visibililty: "visible", display: "none" }).show(100);
    }
    , function () {
        $(this).find('ul:first').css({ visibility: "hidden" });
    });
}
$(document).ready(function () {
    mainmenu();
});





我的尝试:



即时尝试使用其他东西,但我不能



What I have tried:

im try to use another thing but i cant

推荐答案

#nav ul)。css({display: none});
(" #nav ul").css({ display: "none" });


#nav li)。hover( function (){
(" #nav li").hover(function () {


this )。find(' ul:first')。css( {visibililty: visible,display: none})。show( 100 );
}
功能(){
(this).find('ul:first').css({ visibililty: "visible", display: "none" }).show(100); } , function () {


这篇关于如何解决这个问题?点击菜单时再次点击它会弹出没有任何反应!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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