• 圣杯与双飞翼布局


    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="UTF-8">
    <title>双飞翼圣杯</title>
    <style type="text/css">
    *{
    margin: 0;
    padding: 0;
    border: 0;
    }
    .a{
    float: left;
    }
    #wrap{
    overflow: hidden;
    }
    #center{
    100%;
    height: 500px;
    background :#f40;
    }
    #left{
    20%;
    height: 500px;
    background: green;
    margin-left: -100%;
    }
    #right{
    30%;
    height: 500px;
    background: #ccc;
    margin-left: -30%;
    }

    .header,.footer{
    100%;
    background: #666;
    height:30px;
    clear:both;
    }
    .bd{
    padding-left:150px;
    padding-right:190px;
    height: 200px;
    }
    .left{
    background: #E79F6D;
    150px;
    float:left;
    margin-left:-100%;
    position: relative;
    left:-150px;
    height: 100%;
    }
    .main{
    background: #D6D6D6;
    100%;
    float:left;
    height: 100%;

    }
    .right{
    background: #77BBDD;
    190px;
    float:left;
    margin-left:-190px;
    position:relative;
    right:-190px;
    height: 100%;
    }

    </style>
    </head>
    <body>
    <!-- 双飞翼布局 -->
    <div id="wrap">
    <div id="center" class="a"></div>
    <div id="left" class="a"></div>
    <div id="right" class="a"></div>
    </div>
    <!-- 圣杯布局 -->
    <div class="header">Header</div>
    <div class="bd">
    <div class="main">Main</div>
    <div class="left">Left</div>
    <div class="right">Right
    </div>
    </div>
    <div class="footer">Footer</div>
    </body>
    </html>

  • 相关阅读:
    .net的25个小技巧
    使用ASP.Net2.0国际化你的网站祥解
    国外C#开源项目(转)
    千千阙歌
    js中var的有或无重复声明和以后的声明
    XMLHttpRequest
    java参数与引用
    Total Commander
    XMLDOM 的async属性
    Java内嵌类
  • 原文地址:https://www.cnblogs.com/zzgyq/p/6510250.html
Copyright © 2020-2023  润新知