zoukankan      html  css  js  c++  java
  • 圣杯布局

    <!DOCTYPE html>
    <html lang="en">
    <head>
      <meta charset="UTF-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>Document</title>
      <style>
        body {
          min-width: 550px;
        }
        #container {
          padding-left: 200px; 
          padding-right: 150px;
        }
        #container .column {
          height: 200px;
          float: left;
        }
        #center {
          width: 100%;
          background: red;
        }
        #left {
          background: blue;
          width: 200px; 
          margin-left: -100%;
          position: relative;
          right: 200px;
        }
        #right {
          background: green;
          width: 150px; 
          margin-right: -150px; 
        }  
      </style>
    </head>
    <body>
      <div id="container">
        <div id="center" class="column">
        </div>
    
    
        <div id="left" class="column">
        </div>
    
        <div id="right" class="column">
        </div>
      </div>
    </body>
    </html>
    <!DOCTYPE html>
    <html lang="en">
    <head>
      <meta charset="UTF-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>Document</title>
      <style>
        body {
          min-width550px;
        }
        #container {
          padding-left200px
          padding-right150px;
        }
        #container .column {
          height200px;
          floatleft;
        }
        #center {
          width100%;
          backgroundred;
        }
        #left {
          backgroundblue;
          width200px
          margin-left-100%;
          positionrelative;
          right200px;
        }
        #right {
          backgroundgreen;
          width150px
          margin-right-150px
        }  
      </style>
    </head>
    <body>
      <div id="container">
        <div id="center" class="column">
        </div>


        <div id="left" class="column">
        </div>

        <div id="right" class="column">
        </div>
      </div>
    </body>
    </html>
  • 相关阅读:
    NSHashtable and NSMaptable
    架构的本质:构造定律与结合规则
    软件复用的基础和形式
    架构模式:循环模式、管道模式
    待整理
    functions and closures are reference types-函数和闭包是引用类型
    @autoclosure-可以让表达式自动封装成一个闭包:输入的是一个表达式
    Python 运算符优先级
    Linux下chkconfig命令详解
    Linux下Redis开机自启(Centos)
  • 原文地址:https://www.cnblogs.com/zwhbk/p/12431453.html
Copyright © 2011-2022 走看看