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>
    右侧打赏一下 代码改变世界一块二块也是爱
  • 相关阅读:
    AJAX
    大前端面试一(基础)
    webpack打包vue -->简易讲解
    vue实现原理
    Spring boot 线上部署
    javascript 事件
    React native采坑路 Running 1 of 1 custom shell scripts
    PHP swoole实现redis订阅和发布
    JAVA 注解和反射
    微信公众平台获取用户地理位置之开发文档详解
  • 原文地址:https://www.cnblogs.com/ht955/p/15173122.html
Copyright © 2011-2022 走看看