• 最简单的html tab选项卡


    http://www.cnfgg.com/article/Asp/Html_tabcontrol.htm

    放这里随时参考一下

    <html xmlns="">
    <head>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     <meta http-equiv="Content-Language" content="zh-CN" />
     <meta name="roots" content="" />
     <meta name="Keywords" content="" />
     <meta name="Description" content="" />
     <title></title>
     <style type="text/css">
        body{font:"宋体";font-size:12px;}
        a:link,a:visited{font-size:12px;color:#666;text-decoration:none;}
        a:hover{color:#ff0000;text-decoration:underline;}
        #Tab{margin:0 auto;width:220px;border:1px solid #BCE2F3;}
        .Menubox{height:28px;border-bottom:1px solid #64B8E4;background:#E4F2FB;}
        .Menubox ul{list-style:none;margin:7px 40px;padding:0;position:absolute;}
        .Menubox ul li{float:left;background:#64B8E4;line-height:20px;display:block;cursor:pointer;width:65px;text-align:center;color:#fff;font-weight:bold;border-top:1px solid #64B8E4;border-left:1px solid #64B8E4;border-right:1px solid #64B8E4;}
        .Menubox ul li.hover{background:#fff;border-bottom:1px solid #fff;color:#147AB8;}
        .Contentbox{clear:both;margin-top:0px;border-top:none;height:181px;padding-top:8px;height:100%;}
        .Contentbox ul{list-style:none;margin:7px;padding:0;}
        .Contentbox ul li{line-height:24px;border-bottom:1px dotted #ccc;}
     </style>
     <script>
        <!--
        function setTab(name,cursel,n){
        for(i=1;i<=n;i++){
        var menu=document.getElementById(name+i);
        var con=document.getElementById("con_"+name+"_"+i);
        menu.className=i==cursel?"hover":"";
        con.style.display=i==cursel?"block":"none";
        }
        }
        //-->
     </script>
    </head>
    <body>
    <br><br>
    <div id="Tab">
      <div class="Menubox">
        <ul>
          <li id="menu1" onmouseover="setTab('menu',1,2)" class="hover">高职高专</li>
          <li id="menu2" onmouseover="setTab('menu',2,2)" >民办学校</li>
        </ul>
      </div>
      <div class="Contentbox"> 
        <div id="con_menu_1" class="hover">
          <ul>
            <li>·<a href="#">北京工业职业技术学院</a></li>
            <li>·<a href="#">北京财贸职业学院</a></li>
            <li>·<a href="#">天津职业大学</a></li>
            <li>·<a href="#">大连职业技术学院</a></li>
            <li>·<a href="#">辽宁交通高等专科学校</a></li>
            <li>·<a href="#">浙江金融职业学院</a></li>
            <li>·<a href="#">山东商业职业技术学院</a></li>
            <li>·<a href="#">宁波职业技术学院</a></li>
            <li>·<a href="#">武汉职业技术学院</a></li>
          </ul>
        </div>
        <div id="con_menu_2" style="display:none">
          <ul>
            <li>·<a href="#">江西蓝天学院</a></li>
            <li>·<a href="#">西安外事学院</a></li>
            <li>·<a href="#">湖南涉外经济学院</a></li>
            <li>·<a href="#">西安翻译学院</a></li>
            <li>·<a href="#">三江学院</a></li>
            <li>·<a href="#">北京城市学院</a></li>
            <li>·<a href="#">黄河科技学院</a></li>
            <li>·<a href="#">吉林华桥外国语学院</a></li>
            <li>·<a href="#">浙江树人学院</a></li>
          </ul>
        </div>
      </div>
    </div>
    </body>
    </html>
  • 相关阅读:
    如何区分 PaaS、IaaS 、SaaS?
    IP黑名单
    VMware vSphere 6 序列号
    什么是DMZ区域,DMZ区域的作用与原理
    PM2 进程管理工具
    解决Centos6 2021年后yum失效问题
    解决: Got permission denied while trying to connect to the Docker daemon socket
    Windows原版镜像
    使用LemonBench工具对Linux服务器进行综合评测
    使用 Packet Sender 发送TCP包
  • 原文地址:https://www.cnblogs.com/abcbuzhiming/p/2822793.html
Copyright © 2020-2023  润新知