zoukankan      html  css  js  c++  java
  • css3 弹性盒子

    弹性盒子

    父元素
      display:flex;       设置元素为弹性盒子

      flex-direction        设置弹性盒子轴(x,y,轴)与排列 flex-wrap 设置容器为单行或多行 

      flex-direction: row | row-reverse | column | column-reverse

      justify-content    设置子元素如何在当前轴方向的排列     

      justify-content: flex-start | flex-end | center | space-between | space-around

      align-items      设置子元素在垂直于轴方向上的排列     

      align-items: flex-start | flex-end | center | baseline | stretch

      flex-wrap     属性用于指定弹性盒子的子元素换行方式  

      flex-wrap: nowrap|wrap|wrap-reverse|initial|inherit;

      aline-content      align-content 属性用于修改 flex-wrap 属性的行为。类似于 align-items, 但它不是设置弹性子元素的对齐,而是设置各个行的对齐。

      align-content: flex-start | flex-end | center | space-between | space-around | stretch


    子元素

      order 设置子元素出现顺序

      flex 简写 flex-grow(grow)   扩展比例 flex-shrink(收缩比例)   flex-basis(宽度,像素值) 缩写    

      flex: auto | initial | none | inherit | [ flex-grow ] || [ flex-shrink ] || [ flex-basis ]

      align-self 设置单独子元素如何沿着纵轴排列,能够覆盖容器中的 align-items属性        

      align-self: auto | flex-start | flex-end | center | baseline | stretch

  • 相关阅读:
    大道至简读后感(第二章)
    大道至简读后感
    将课程中的所有动手动脑的问题以及课后实验性的问题,整理成一篇文档
    python之基础
    python之面向对象
    python之网络编程
    python之函数
    Managing SharePoint 2010 Farm Solutions with Windows PowerShell
    Oracle RMAN vs. Export?
    转帖在oracle中自动大批量生成测试数据
  • 原文地址:https://www.cnblogs.com/jeff-zhu/p/11390496.html
Copyright © 2011-2022 走看看