zoukankan      html  css  js  c++  java
  • grid表格

    grid表格
    HTML
    <!DOCTYPE html>
    <html>
    <head>
     <title>网格</title>
     <link rel="stylesheet" type="text/css" href="positiontest.css">
    </head>
    <body>
    <div class="wrapper">
       <div class="one">one</div>
     <div class="two">two</div>
     <div class="three">three</div>
     <div class="four">four</div>
     <div class="five">five</div>
     <div class="six">six</div>
    </div>

     

    </body>
    </html>
     
    css
    .wrapper {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      grid-gap: 10px;
      grid-auto-rows: minmax(100px, auto);
     /* display: grid;
      grid-template-columns:  repeat(5,1fr ) ;*/
    }
    .one {
      background: red;
     
     grid-column: 1 / 3;
      grid-row: 1;
    }
    .two {
      background: blue;
     
     
     
      grid-column: 2 / 4;
      grid-row: 1 / 3;
      background: yellow;
    }
    .three {
      grid-column: 1;
      grid-row: 2 / 5;
      background-color: red;
    }
    .four {
      grid-column: 3;
      grid-row: 3;
      background-color: blue;
    }
    .five {
      grid-column: 2;
      grid-row: 4;
      background-color: yellow;
    }
    .six {
      grid-column: 3;
      grid-row: 4;
      background-color: red;
    }
  • 相关阅读:
    AtCoder Grand Contest 001F Wide Swap
    生成函数/母函数入门学习
    树的点分治入门小结
    树链剖分入门小结
    有重复元素的全排列
    二项式界
    二项系数
    排列问题、组合问题
    容斥原理
    P3372 【模板】线段树 1
  • 原文地址:https://www.cnblogs.com/ambitious-to-49/p/10133796.html
Copyright © 2011-2022 走看看