zoukankan      html  css  js  c++  java
  • CSS TreeMenu 二级树形菜单

    <!doctype html public "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="gb2312">
    <head>
    <title>二级树形菜单示例:CSS TreeMenu </title>
    <meta http-equiv="content-type" content="text/html;" />
    <meta name="generator" content="editplus" />
    <meta name="author" content="CNLei,枫岩,www.cnlei.net" />
    <meta name="keywords" content="二级树形菜单" />
    <meta name="description" content="二级树形菜单示例" />
    <style type="text/css" media="all">
    /***********************
    Title:  CSS for TreeMenu
    Author: 枫岩@IECN.Net
    UpDate: 2005/11/2
    ***********************/
    a,a:visited {color:#333;text-decoration:none;}
    a:hover {color:#f60;}
    body,td {font:13px "Geneva","宋体", "Arial", "Helvetica",sans-serif;}
    ul,li {margin:0;padding:0;list-style:none;}
    h1,h2,h3,h4,h5,h6 {margin:0;padding:0;}
    h1 {padding:5px;color:#900;font:16px bold "Geneva","宋体", "Arial", "Helvetica",sans-serif;}
    h1 small {font-size:11px;font-weight:normal;color:#660;}
    .TreeWrap {200px;}
    .MenuBox .titBox a,
    .MenuBox .titBox a:visited,
    .MenuBox2 .titBox a,
    .MenuBox2 .titBox a:visited {margin-left:10px;padding-left:40px;color:#003;font-size:12px;display:block;}
    .MenuBox .titBox h3 a {background:url(http://cnlei.iecn.net/mycode/csstreemenu/tree/ico_folder_open.gif) no-repeat 0 40%;}
    .MenuBox .titBox h3.Fst a {background:url(http://cnlei.iecn.net/mycode/csstreemenu/tree/ico_folder_open_fst.gif) no-repeat 0 40%;}
    .MenuBox .titBox h3.Lst a {background:url(http://cnlei.iecn.net/mycode/csstreemenu/tree/ico_folder_open_lst.gif) no-repeat 0 40%;}
    .MenuBox2 .titBox h3 a {background:url(http://cnlei.iecn.net/mycode/csstreemenu/tree/ico_folder.gif) no-repeat 0 40%;}
    .MenuBox2 .titBox h3.Fst a {background:url(http://cnlei.iecn.net/mycode/csstreemenu/tree/ico_folder_fst.gif) no-repeat 0 40%;}
    .MenuBox2 .titBox h3.Lst a {line-height:250%;background:url(http://cnlei.iecn.net/mycode/csstreemenu/tree/icon_exit.gif) no-repeat 0 0;}
    .MenuBox2 .txtBox {display:none;}
    .MenuBox .txtBox ul li {padding-left:65px;line-height:150%;}
    .MenuBox .txtBox .num {color:#e00;}
    .MenuBox .txtBox ul {background:url(http://cnlei.iecn.net/mycode/csstreemenu/tree/line_y.gif) repeat-y 16px 0;}
    .MenuBox .txtBox ul li {background:url(http://cnlei.iecn.net/mycode/csstreemenu/tree/t.gif) no-repeat 28px 50%;}
    .MenuBox .txtBox ul li.Lst {background:url(http://cnlei.iecn.net/mycode/csstreemenu/tree/t_lst.gif) no-repeat 28px 50%;}
    </style>
    <script type="text/javascript">
     <!--
     function ExChgClsName(Obj,NameA,NameB){
      var Obj=document.getElementById(Obj)?document.getElementById(Obj):Obj;
      Obj.className=Obj.className==NameA?NameB:NameA;
     }
     function showMenu(iNo){
     ExChgClsName("Menu_"+iNo,"MenuBox","MenuBox2");
     }
    -->
    </script>
    </head>
    <body>
    <h1>CSS TreeMenu <small>By 枫岩@IECN.Net</small></h1>
    <div class="TreeWrap">
    <div class="MenuBox" id="Menu_0">
    <div class="titBox"><h3 class="Fst"><a href="javascript:showMenu(0);">同事</a></h3></div>
    <div class="txtBox">
     <ul>
      <li><a href="#">Dodo</a></li>
      <li><a href="#">小春</a></li>
      <li><a href="#">小林</a></li>
      <li><a href="#">小龙</a></li>
      <li class="Lst"><a href="#">枫岩</a></li>
     </ul>
    </div>
    </div><!--MenuBox-->
    <div class="MenuBox2" id="Menu_1">
    <div class="titBox"><h3><a href="javascript:showMenu(1);">客户</a></h3></div>
    <div class="txtBox">
     <ul>
      <li><a href="#">Dodo</a></li>
      <li><a href="#">小春</a></li>
      <li><a href="#">小林</a></li>
      <li><a href="#">小龙</a></li>
      <li class="Lst"><a href="#">枫岩</a></li>
     </ul>
    </div>
    </div><!--MenuBox-->
    <div class="MenuBox2" id="Menu_2">
    <div class="titBox"><h3><a href="javascript:showMenu(2);">朋友</a></h3></div>
    <div class="txtBox">
     <ul>
      <li><a href="#">Dodo</a></li>
      <li><a href="#">小春</a></li>
      <li><a href="#">小林</a></li>
      <li><a href="#">小龙</a></li>
      <li class="Lst"><a href="#">枫岩</a></li>
     </ul>
    </div>
    </div><!--MenuBox-->
    <div class="MenuBox2" id="Menu_3">
    <div class="titBox"><h3><a href="javascript:showMenu(3);">家人</a></h3></div>
    <div class="txtBox">
     <ul>
      <li><a href="#">Dodo</a></li>
      <li><a href="#">小春</a></li>
      <li><a href="#">小林</a></li>
      <li><a href="#">小龙</a></li>
      <li class="Lst"><a href="#">枫岩</a></li>
     </ul>
    </div>
    </div><!--MenuBox-->
    <div class="MenuBox2">
    <div class="titBox"><h3 class="Lst"><a href="#">退出系统</a></h3></div>
    </div><!--MenuBox-->
    </div>
    </body>
    </html>
  • 相关阅读:
    美女检测器
    汉字动画程序的原理
    值类型不是值类型(ValueType is NOT a Value Type):闲谈.Net类型
    PowerShell 简介
    Visual Studio 2012 RC 发布
    使用 MvcMiniProfiler 监控EF 4.1 with MySQL Provider
    NuGet安装及简单使用
    发布自己的NuGet程序
    Qizmt 单机及分布式部署注意事项
    JDynamic :支持Json反序列化为Dynamic对象
  • 原文地址:https://www.cnblogs.com/MaxIE/p/305013.html
Copyright © 2011-2022 走看看