铁雪资源网 Design By www.gsvan.com
本文实例讲述了js实现的后台左侧管理菜单代码。分享给大家供大家参考。具体如下:
这是一个完美的后台左侧管理菜单,从样式来说,貌似出自专业人士之手,风格清新,操作实用,用在WEB管理系统中或用在网站后台管理中,最恰当不过了。
运行效果截图如下:
在线演示地址如下:
http://demo.jb51.net/js/2015/js-left-main-menu-style-codes/
具体代码如下:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML>后台左侧菜单<HEAD> <META http-equiv=Content-Type content="text/html; charset=gb2312"> <style> BODY { MARGIN: 0px } P { MARGIN: 0px } BODY { COLOR: #000; BACKGROUND-COLOR: #fff } BODY { FONT-SIZE: 12px; LINE-HEIGHT: 150%; FONT-FAMILY: "Verdana", "Arial", "Helvetica", "sans-serif" } TABLE { FONT-SIZE: 12px; LINE-HEIGHT: 150%; FONT-FAMILY: "Verdana", "Arial", "Helvetica", "sans-serif" } INPUT { FONT-SIZE: 12px; FONT-FAMILY: "Verdana", "Arial", "Helvetica", "sans-serif" } SELECT { FONT-SIZE: 12px; FONT-FAMILY: "Verdana", "Arial", "Helvetica", "sans-serif" } TEXTAREA { FONT-SIZE: 12px; FONT-FAMILY: "Verdana", "Arial", "Helvetica", "sans-serif" } A:link { COLOR: #036; TEXT-DECORATION: none } A:visited { COLOR: #036; TEXT-DECORATION: none } A:hover { COLOR: #f60; TEXT-DECORATION: underline } A.menuChild:link { COLOR: #036; TEXT-DECORATION: none } A.menuChild:visited { COLOR: #036; TEXT-DECORATION: none } A.menuChild:hover { COLOR: #f60; TEXT-DECORATION: underline } A.menuParent:link { COLOR: #000; TEXT-DECORATION: none } A.menuParent:visited { COLOR: #000; TEXT-DECORATION: none } A.menuParent:hover { COLOR: #f60; TEXT-DECORATION: none } TABLE.position { WIDTH: 100% } TR.position { HEIGHT: 25px; BACKGROUND-COLOR: #f4f7fc } TD.position { BORDER-RIGHT: #adceff 1px solid; PADDING-LEFT: 20px; BORDER-BOTTOM: #adceff 1px solid } TABLE.listTable { WIDTH: 98%; BACKGROUND-COLOR: #b1ceee } TR.listHeaderTr { FONT-WEIGHT: bold; HEIGHT: 25px; BACKGROUND-COLOR: #ebf4fd; TEXT-ALIGN: center } TR.listTr { HEIGHT: 25px; BACKGROUND-COLOR: #fff; TEXT-ALIGN: center } TR.listAlternatingTr { HEIGHT: 25px; BACKGROUND-COLOR: #fffdf0; TEXT-ALIGN: center } TR.listFooterTr { HEIGHT: 30px; BACKGROUND-COLOR: #ebf4fd; TEXT-ALIGN: center } TABLE.editTable { WIDTH: 98%; BACKGROUND-COLOR: #b1ceee } TR.editHeaderTr { HEIGHT: 25px; BACKGROUND-COLOR: #ebf4fd } TD.editHeaderTd { PADDING-LEFT: 50px; FONT-WEIGHT: bold } TR.editTr { HEIGHT: 30px } TD.editLeftTd { WIDTH: 150px; BACKGROUND-COLOR: #fffdf0; TEXT-ALIGN: center } TD.editRightTd { PADDING-LEFT: 10px; BACKGROUND-COLOR: #fff } TR.editFooterTr { HEIGHT: 40px; BACKGROUND-COLOR: #ebf4fd } TD.editFooterTd { PADDING-LEFT: 150px } </style> <SCRIPT language=javascript> function expand(el) { childObj = document.getElementById("child" + el); if (childObj.style.display == 'none') { childObj.style.display = 'block'; } else { childObj.style.display = 'none'; } return; } </SCRIPT> </HEAD> <BODY> <TABLE height="100%" cellSpacing=0 cellPadding=0 width=170 background=images/menu_bg.jpg border=0> <TR> <TD vAlign=top align=middle> <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0> <TR> <TD height=10></TD></TR></TABLE> <TABLE cellSpacing=0 cellPadding=0 width=150 border=0> <TR height=22> <TD style="PADDING-LEFT: 30px" background=images/menu_bt.jpg><A class=menuParent onclick=expand(1) href="javascript:void(0);">关于我们</A></TD></TR> <TR height=4> <TD></TD></TR></TABLE> <TABLE id=child1 style="DISPLAY: none" cellSpacing=0 cellPadding=0 width=150 border=0> <TR height=20> <TD align=middle width=30><IMG height=9 src="/UploadFiles/2021-04-02/menu_icon.gif">希望本文所述对大家的JavaScript程序设计有所帮助。
标签:
js,后台左侧,管理菜单
铁雪资源网 Design By www.gsvan.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
铁雪资源网 Design By www.gsvan.com
暂无js实现的后台左侧管理菜单代码的评论...