• web布局


    px:绝对单位,页面按精确像素展示
    fr:每个栏的宽度设置为 1fr 后,三个 10px 的间隙首先从总宽度减去,再计算每个栏的宽度!
    可用空间 平分
    ch:字符单位被定义为0字符的宽度

    grid-column:指定网格的开始和结束(行)
    grid-row:列

    .wrapper { /*包装*/
    display: grid; /*呈现网格*/
    grid-template-columns: repeat(3, 1fr); /*三行*/
    grid-gap: 10px; /*网格间距*/
    grid-auto-rows: minmax(100px, auto); /*行宽度*/
    }

    .one {
    grid-column: 1 / 3; /*one是从线编号为1的到3 行宽度为1 */
    grid-row: 1;
    }
    .two {
    grid-column: 2 / 4; /*two是2到4 行宽度为1到3*/
    grid-row: 1 / 3;
    }
    .three {
    grid-column: 1; /*three是1 行宽度为2到5*/
    grid-row: 2 / 5;
    }
    .four {
    grid-column: 3; /*four是3 3 这个单元网格*/
    grid-row: 3;
    }
    .five {
    grid-column: 2; /*five是2 4*/
    grid-row: 4;
    }
    .six {
    grid-column: 3; /*six是3 4*/
    grid-row: 4;
    }

  • 相关阅读:
    DBHelper
    jsTree使用
    爬虫系列之Scrapy框架
    Mongodb安装
    爬虫系列之mongodb
    爬虫学习目录
    爬虫之selenium模块
    爬虫简介与requests模块
    爬虫数据解析的三方式
    线程相关
  • 原文地址:https://www.cnblogs.com/huxiang/p/9749003.html
Copyright © 2020-2023  润新知