哪位大神能帮我吧2级菜单变成3级菜单呀!在线等!

<!DOCTYPE html>



网站侧边栏可展开折叠jQuery导航
body{margin:0;padding:0;overflow-x:hidden;} html, body{height:100%;} img{border:none;} *{font-family:'微软雅黑';font-size:12px;color:#626262;} dl,dt,dd{display:block;margin:0;} a{text-decoration:none;} .container{width:100%;height:100%;margin:auto;} .leftsidebar_box{width:160px;height:auto !important;overflow:visible !important;position:fixed;height:100% !important;background-color:#3992d0;} .line{height:2px;width:100%;background-image:url(images/line_bg.png);background-repeat:repeat-x;} .leftsidebar_box dt{padding-left:40px;padding-right:10px;background-repeat:no-repeat;background-position:10px center;color:#f5f5f5;font-size:14px;position:relative;line-height:48px;cursor:pointer;} .leftsidebar_box dd{background-color:#317eb4;padding-left:40px;} .leftsidebar_box dd a{color:#f5f5f5;line-height:20px;} .leftsidebar_box dt img{position:absolute;right:10px;top:20px;} .system_log dt{background-image:url(images/system.png)} .custom dt{background-image:url(images/custom.png)} .channel dt{background-image:url(images/channel.png)} .app dt{background-image:url(images/app.png)} .cloud dt{background-image:url(images/cloud.png)} .syetem_management dt{background-image:url(images/syetem_management.png)} .source dt{background-image:url(images/source.png)} .statistics dt{background-image:url(images/statistics.png)} .leftsidebar_box dl dd:last-child{padding-bottom:10px;}


$(function(){ $(".leftsidebar_box dt").css({"background-color":"#3992d0"}); $(".leftsidebar_box dt img").attr("src","images/select_xl01.png"); $(".leftsidebar_box dd").hide(); $(".leftsidebar_box dt").click(function(){ $(".leftsidebar_box dt").css({"background-color":"#3992d0"}) $(this).css({"background-color": "#317eb4"}); $(this).parent().find('dd').removeClass("menu_chioce"); $(".leftsidebar_box dt img").attr("src","images/select_xl01.png"); $(this).parent().find('img').attr("src","images/select_xl.png"); $(".menu_chioce").slideUp(); $(this).parent().find('dd').slideToggle(); $(this).parent().find('dd').addClass("menu_chioce"); }); })


3个回答

  • -你这个看起来好吓人

可以用mmenu吗?做多少级都可以;而且效果也不错。参考地址:http://blog.csdn.net/qq_19558705/article/details/49808151

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问