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;
    }
  • 相关阅读:
    委托&指针函数&回调函数
    Unity animation笔记1
    hadoop源码编译
    protocbuf的安装
    学习hadoop不错的一些文章
    moven的安装
    在Linux上安装与配置Hadoop
    linux tar命令详解
    How to contribute to hadoop common
    Ubuntu下SVN的安装
  • 原文地址:https://www.cnblogs.com/teamemory/p/15122118.html
Copyright © 2011-2022 走看看