zoukankan      html  css  js  c++  java
  • 负边距实现圣杯布局

    <!DOCTYPE html>
    <html lang="en">
    
    <head>
        <meta charset="UTF-8">
    
        <title>Document</title>
        <style type="text/css">
            .left,
            .middle,
            .right {
                position: relative;
                float: left;
                min-height: 400px;
            }
    
            .container {
                padding: 0 200px;
                overflow: hidden;
            }
    
            .left {
                width: 200px;
                left: -200px;
                margin-left: -100%;
                background: yellow;
            }
    
            .right {
                width: 200px;
                right: -200px;
                margin-left: -200px;
                background: purple;
            }
    
            .middle {
                width: 100%;
                background: orange;
            }
        </style>
    </head>
    
    <body>
        <div class="container">
            <div class="middle">
                我是圣杯布局我是圣杯布局我是圣杯布局我是圣杯布局我是圣杯布局我是圣杯布局我是圣杯布局我是圣杯布局我是圣杯布局我是圣杯布局我是圣杯布局我是圣杯布局我是圣杯布局我是圣杯布局我是圣杯布局我是圣杯布局我是圣杯布局我是圣杯布局我是圣杯布局我是圣杯布局我是圣杯布局我是圣杯布局我是圣杯布局我是圣杯布局
            </div>
            <div class="left">左左</div>
            <div class="right">右右</div>
        </div>
    </body>
    
    </html>
  • 相关阅读:
    poj3537--Crosses and Crosses
    poj3480--John
    poj2975--Nim
    poj2960 S-Nim
    poj2505-A multplication game
    Team Queue(POJ 2259)
    将caffemodel文件转换为Matlab可用的数据形式
    Invalid MEX-file: caffe.mexa64 的解决方案
    mongoDB-3.x启用认证
    mongoDB跨平台图形管理工具
  • 原文地址:https://www.cnblogs.com/wujf/p/14171491.html
Copyright © 2011-2022 走看看