zoukankan      html  css  js  c++  java
  • 弹性布局公共样式总结

    //纵向布局
    .flex-col {
      flex-direction: column;
    }
    //横向翻转布局
    .flex-row-r {
      flex-direction: row-reverse;
    }
    /*两边对齐弹性布局*/
    .flex-between {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    /*间隔相等弹性布局*/
    .flex-around {
      display: flex;
      justify-content: space-around;
      align-items: center;
    }
    /*水平居中*/
    .flex-center {
      display: flex;
      justify-content: center;
      align-items: center;
    }
    /*弹性布局从头排*/
    .flex-start {
      display: flex;
      justify-content: flex-start;
      align-items: center;
    }
    /*弹性布局从尾排*/
    .flex-end {
      display: flex;
      justify-content: flex-end;
      align-items: center;
    }
    /*弹性布局项目缩放*/
    .flex-grow {
      flex-grow: 1;
    }
    .flex-shrink {
      flex-shrink: 0;
    }
    /*弹性布局换行*/
    .flex-wrap {
      flex-wrap: wrap;
    }
    /*弹性布局文字不换行,溢出显示...*/
    .flex-1 {
      flex: 1;
      overflow: hidden;
    }
    //项目顶部对齐
    .align-start {
      align-self: flex-start;
    }
    //项目尾部对齐
    .align-end {
      align-self: flex-end;
    }
  • 相关阅读:
    Linux 内核开发—内核简单介绍
    strcmp函数和strcpy函数
    POJ 3734
    怎样使用SetTimer MFC 够具体
    java 递归函数
    海量数据存储
    使用WinINet和WinHTTP实现Http訪问
    getline函数
    UDP编程
    数据文件传输通道技术解决方式
  • 原文地址:https://www.cnblogs.com/teamemory/p/15122118.html
Copyright © 2011-2022 走看看