zoukankan      html  css  js  c++  java
  • 01-布局扩展-利用盒模型完成圣杯布局(双飞翼布局)

    <!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>
            *{
                margin:0;
                padding:0;
            }
            body,html{
                height:100%;
            }
            .left{
                200px;
                height:80%;
                background:rgba(0,0,255,0.5);
                float:left;
            }
            .right{
                200px;
                height:80%;
                background:rgba(255,255,0,0.5);
                float:right;
            }
            .center{
                height:100%;
                background:pink url(./images/bg.jpg);
                /* 用padding把 center-con挤到中间 */
                padding:0 200px;
            }
            .center-con{
                height:100%;
                background:#ccc;
            }
        </style>
    </head>
    <body>
        <div class="left"></div>
        <div class="right"></div>
        <div class="center">
            <div class="center-con"></div>
        </div>
    </body>
    </html>
    右侧打赏一下 代码改变世界一块二块也是爱
  • 相关阅读:
    leetcode 673. 最长递增子序列的个数 java
    leetcode 148. 排序链表 java
    leetcode 98. 验证二叉搜索树 java
    leetcode 29. 两数相除 java
    leetcode 234. 回文链表 java
    Valid Palindrome LeetCode Java
    Single Number II LeetCode Java
    Single Number LeetCode java
    Search in Rotated Sorted Array II LeetCode Java
    Search in Rotated Sorted Array leetcode java
  • 原文地址:https://www.cnblogs.com/ht955/p/15173122.html
Copyright © 2011-2022 走看看