• grid 布局一 固定宽度+自适应宽度


    <!DOCTYPE html>
    <html lang="zh">
    
        <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" />
            <title>grid 布局</title>
            <style type="text/css">
                * {
                    margin: 0;
                    padding: 0;
                }
                
                .container {
                    display: grid;
                    grid-template-columns: 200px auto;
                    grid-template-rows: 100% 100%;
                }
                
                .item-1 {
                    background: #008000;
                }
                
                .item-2 {
                    background: #808080;
                }
                
                .item-3 {
                    background: gold;
                }
                
                .item-4 {
                    background: pink;
                }
                
                .item-5 {
                    background: yellow;
                }
                
                .item-6 {
                    background: #FFD700;
                }
            </style>
        </head>
    
        <body>
            <div class="container">
                <div class="item item-1">1</div>
                <div class="item item-2">2</div>
                <!--<div class="item item-3">3</div>
                <div class="item item-4">4</div>
                <div class="item item-5">5</div>
                <div class="item item-6">6</div>-->
            </div>
        </body>
    
    </html>

  • 相关阅读:
    13 数据库主从
    12 数据备份
    11 锁机制
    12 日志
    10 索引(二)
    09 索引
    update kernel 3.10-3.12
    haproxy para config
    mysql slave to master
    storage disk
  • 原文地址:https://www.cnblogs.com/mengfangui/p/9243377.html
Copyright © 2020-2023  润新知