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">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link href="text.css" type="text/css" rel="stylesheet">
    <title>Document</title>
    </head>
    <body>

    <div class="wrapper">
    <div class="one" style="background:red" ><center>
    One</div>
    <div class="two" style="background:blue">Two</div>
    <div class="three" style="background:yellow">Three</div>
    <div class="four" style="background:green">Four</div>
    <div class="five" style="background:rgb(18, 1, 4)">Five</div>
    <div class="six" style="background:black">Six</div>
    </div>
    </body>
    </html>


    CSS :
    .wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 10px;
    grid-auto-rows: minmax(100px, auto);
    }
    .one {
    grid-column: 1/4;
    grid-row: 1/2;
    }
    .two {
    grid-column: 1 /2;
    grid-row: 2 / 5;
    }
    .three {
    grid-column: 3/4;
    grid-row: 2 / 5;
    }
    .four {
    grid-column: 2/3;
    grid-row: 3;
    }
    .five {
    grid-column: 2;
    grid-row: 4;
    }
    .six {
    grid-column: 2/3;
    grid-row: 2/3;
    }

  • 相关阅读:
    HDU 4334
    HDU 1280
    HDU 1060
    HDU 4033
    大三角形分成4个面积相等的小三角形
    HDU 1087
    HDU 4313
    Sleep(0)及其使用场景
    Decorator(装饰、油漆工)对象结构型模式
    Debug Assertion Failed!
  • 原文地址:https://www.cnblogs.com/jh123/p/9716161.html
Copyright © 2011-2022 走看看