zoukankan      html  css  js  c++  java
  • 163邮箱tab制作

    css+div学习

    访163邮箱tab制作.

    效果图:

      

    <!DOCTYPE html>
    <html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=GB2312" />
        <title>163邮箱tab</title>
        <style type="text/css">
           *{
                margin: 0px;
                padding: 0px;
            }
            .dvTab
            {
                font-family: 'Microsoft Yahei',verdana;
                font-size:14px;
                height: 36px;
                position: absolute;
                left: 0px;
                width: 100%;
                top: 52px;
            }
            .menu
            {
                margin-left:12px;
                color: rgb(106, 106, 106);
            }
            .tab
            {
                list-style-type:none;
                float:left;
                margin-right: -1px;
                border:solid 1px #B9C4CF;
                width:91px;
                background: -moz-linear-gradient(center top , rgb(254, 255, 255), rgb(218, 232, 246)) repeat scroll 0% 0% transparent;
                background-color:#EBF3FA;
                height:23px;
                line-height:23px;
                text-align: center;
                padding: 5px 20px 4px 8px;           
                border-top-left-radius: 3px;
                border-top-right-radius: 3px;            
                text-overflow: ellipsis;
            }
            .dv
            {
                width: 100%;
                height:4px;     
                line-height:4px;       
                background-color:#135AA4;
                position:absolute;
                left:0;
                top:33px;
            }
            .activeTab
            {  
                color:#fff;
                border-color:#135AA4;
                background-color:#135AA4;          
                background: -moz-linear-gradient(center top , rgb(25, 111, 198), rgb(19, 91, 165)) repeat scroll 0% 0% transparent;
            }
         </style>
    </head>
    <body>
        <div class="dvTab">
            <ul class="menu">
                <li  class="tab">首页</li>
                <li  class="tab">通讯录</li>
                <li  class="tab activeTab">应用中心</li>
                <li  class="tab">收件箱</li>
                <li  class="tab">写信</li>
            </ul>
            <div class="dv"></div>
         </div>
    </body>
    </html>

     仅用ul li 元素制作tab

    <!DOCTYPE html>
    <html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=GB2312" />
        <title>163邮箱tab</title>
        <style type="text/css">
           *{
                margin: 0px;
                padding: 0px;
            }
    
            .menu
            {
                float:left;
                width:100%; 
                margin-top:60px;
                padding-left:12px;
                color: rgb(106, 106, 106);
                border-bottom:solid 2px #135AA4;
            }
            .tab
            {
                float:left;
                list-style-type:none;
                margin-right: -1px;
                border:solid 1px #B9C4CF;
                width:91px;
                background: -moz-linear-gradient(center top , rgb(254, 255, 255), rgb(218, 232, 246)) repeat scroll 0% 0% transparent;
                background-color:#EBF3FA;
                height:23px;
                line-height:23px;
                text-align: center;
                overflow:hidden;
                text-overflow:ellipsis;
                padding: 5px 20px 4px 8px;           
                border-top-left-radius: 3px;
                border-top-right-radius: 4px;            
            }
            .activeTab
            {  
                color:#fff;
                border-color:#135AA4;
                background-color:#135AA4;          
                background: -moz-linear-gradient(center top , rgb(25, 111, 198), rgb(19, 91, 165)) repeat scroll 0% 0% transparent;
            }
         </style>
    </head>
    <body>
            <ul class="menu">
                <li  class="tab">首页</li>
                <li  class="tab activeTab">通讯录</li>
                <li  class="tab">应用中心</li>
                <li  class="tab">收件箱</li>
                <li  class="tab">写信给</li>
            </ul>
    </body>
    </html>
  • 相关阅读:
    spring hibernate 调用存储过程
    Mybatis mapper配置
    流量红包算法
    带搜索的下拉框Chosen
    生成二维码
    Linux netlink机制
    OpenFlow Switch学习笔记(七)——Matching Fields
    Hierarchical Token Bucket
    OpenvSwitch架构
    Examining Open vSwitch Traffic Patterns
  • 原文地址:https://www.cnblogs.com/wonderfuly/p/3469655.html
Copyright © 2011-2022 走看看