zoukankan      html  css  js  c++  java
  • Grid(未完全完成)

     1 <!DOCTYPE html>
     2 <html lang="en">
     3 <head>
     4     <meta charset="UTF-8">
     5     <meta name="viewport" content="width=device-width, initial-scale=1.0">
     6     <meta http-equiv="X-UA-Compatible" content="ie=edge">
     7     <title>Document</title>
     8     <link rel="stylesheet" type="text/css" href="three.css">
     9 </head>
    10 </body>
    11 </html>
    12         <div class="box" id="one">One</div>
    13         <div class="box" id="two">Two</div>
    14         <div class="box" id="three">Three</div> 
    15         <div class="box" id="four">Four</div>
    16         <div class="box" id="five">five</div> 
    17         <div class="box" id="six">six</div>
    18         
    19 </div >
    .box {
        display: inline-block;
        width: 100px;
        height: 100px;
        color: white;
        background:greenyellow;
        color: rgb(16, 7, 29);
      }
      
      #one {
        position:relative;
        top: 20px;
        left: 20px;
        background:red;
      }
      #two {
        position:relative;
        top: 20px;
        left: 20px;
        background: blue;
      }
      #tree {
        position:relative;
        top: 20px;
        left: 20px;
        background:orange;
      }
      #four {
        position:relative;
        top: 20px;
        left: 20px;
        background:purple;
      }
      #five {
        position:relative;
        top: 20px;
        left: 20px;
        background:rgb(25, 5, 71);
      }
      #six {
        position:relative;
        top: 20px;
        left: 20px;
        background: pink;
      }
    
    .wrapper{
        display:grid;
        text-align: center;
        grid-template-columns: 200px 50px 100px;
        grid-auto-rows: 100px 30px ;
    }
    .iteml{
        grid-column-start: 1;
        grid-column-end: 3;
    }
    .item3{
        grid-column-start: 2;
        grid-column-end: 4;
    }
    .item4{
        grid-column-start: 2;
        grid-column-end: 4;
    }
  • 相关阅读:
    HTML的基本知识
    java script后续
    java script
    CSS
    DAY 33 进程理论与进程方法
    DAY 32 UDP协议、Socketserver模块,并发编程基础
    DAY 30 网络编程基础
    DAY 25多态、反射、异常处理
    DAY 24继承与组合
    DAY 23 面向对象(二)
  • 原文地址:https://www.cnblogs.com/linlinlina-liu/p/9703657.html
Copyright © 2011-2022 走看看