zoukankan      html  css  js  c++  java
  • 网格布局

    <!DOCTYPE html>
    <html>
    <head>
     <meta charset="utf-8">
     <title>布局</title>
     <style>
      .box{
       display: grid;
       grid-template-columns:100px 100px 100px 100px 100px;
       grid-template-rows: 100px 100px 100px 100px 100px;

      }
      }
           .num{
                font-size: 150%;
                padding: 20px;
                margin: 10px;
            }
      .one{
       background: red;
          
       grid-area: 1/1/2/6;
      
      }
      .two{
       background: orange;
          
       grid-area: 2/1/6/2;
      
      }
      .three{
       background: blue;
          
       grid-area: 2/2/3/5;
      
      }
      .four{
       background: pink;
          
       grid-area: 3/2/4/5;
      
      }
      .five{
       background: yellow;
          
       grid-area: 4/2/5/5;
      
      }
      .six{
       background: green;
          
       grid-area: 5/2/6/5;
      
      }
      .seven{
       background: purple;
          
       grid-area: 2/5/6/6;
      
      }
     </style>
    </head>
    <body>
     <h1>网格布局</h1>
     <div class="box">
      <div class="num one">one</div>
       <div class="num two">two</div>
      <div class="num three">three</div>
      <div class="num four">four</div>
      <div class="num five">five</div>
      <div class="num six">six</div>
            
            <div class="num seven">seven</div>
     </div>
    </body>
    <html>
  • 相关阅读:
    百度练习题 统计元音字母
    guess number
    LPTHW 结束了
    大坑
    LPTHW 笨办法学python 40章 类
    LPTHW 笨办法学python 37章 python关键字/关键词介绍
    dis进行反编译
    LPTHW 笨办法学python 33章
    eclipse安装详解以及遇到的问题
    安装eclipse错误Could not create the Java virtual machine
  • 原文地址:https://www.cnblogs.com/0sakura0/p/9752024.html
Copyright © 2011-2022 走看看