FlexBox标准写法:

支持浏览器: IE11,  Chrome29+, FireFox 20+, Safari加前缀 -webkit-
概述:
总的来说就是12个属性;
关于容器的6个,5个单一属性,分别定义了元素排列的方向, 行, 水平排列, 垂直排列, 空白分布, 和一个简写属性, 方向,行
关于容器内元素的6个, 5个单一属性, 分别定义元素的顺序, 伸展, 收缩, 初始尺寸, 对齐, 和一个简写属性 描述元素尺寸
 
container : display: flex | inline-flex;
说明
 flex-direction: row | column | row-reverse | column-reverse
元素在容器内的排列方向
flex-wrap: nowrap | wrap | wrap-reverse
元素一行或多行显示
flex-flow: <flex-direction> <flex-wrap>    default: <row nowrap>
上面两个属性的简写
justify-content: flex-start | flex-end | center | space-between | space-around
水平方向上, 元素在容器内的分布
align-items: stretch | flex-start | flex-end | center | baseline
垂直方向上,  元素在容器内的分布
align-content: stretch | flex-start | flex-end | center | space-between | space-around
在容器内, 额外的空白部分的分布
Container items :
 
 order<number> 0
元素在容器内的排列顺序
align-self: auto |  flex-start | flex-end | center | baseline | stretch 
覆盖align-items的值, 定义自身在垂直方向上的分布
flex-grow<number> 0
元素在容器内所占空间的伸展
flex-shrink<number> 1
元素在容器内所占空间的收缩
flex-basis<width> auto
初始化时, 元素在容器内的尺寸
flex: <flex-grow> <flex-shrink> <flex-basis>    <0  1  auto>
上面三个属性的简写
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
*以上<number>不支持负值;
*每个属性的第一个取值为默认值;
*蓝色为多个属性简写模式;
 
兼容IE10:加前缀 -ms- 
 
 display:-ms-flexbox | -ms-inline-flexbox;
standard   (橙色为item属性)
-ms-flex-direction :  row | column | row-reverse  | column-reverse 
flex-direction
-ms-flex-wrap none | wrap | wrap-reverse
flex-wrap
不支持
flex-flow
-ms-flex-pack  start | end |center | justify
justify-content
-ms-flex-align  stretch | start | end |center | baseline
align-items
-ms-flex-line-pack  start | end |center | baseline
align-content
-ms-flex-order   <number>
order
-ms-flex-item-align  stretch | start | end |center | baseline
align-self
-ms-flex <positive-flex> <negative-flex> <preferred-size> || none
flex : 0 0 auto
 
 
 
 
 
 
 
 
 
 
 
 
 
*IE10之前不建议使用,可以尝试用display:table;
 
关于Chrome,FireFox旧版本支持:
FireFox:把 -webkit- 换成 -moz- 即可
 
container : display: -webkit-flexbox | -webkit-inline-flexbox;
standard   (橙色为item属性)
-webkit-box-direction: normal | reverse

-webkit-box-orient: horizontal | vertical
flex-direction
不支持
flex-wrap
不支持
flex-flow
-webkit-box-pack: flex-start | flex-end | center | space-between | space-around
justify-content
不支持
align-content
-webkit-box-align: stretch | flex-start | flex-end | center | baseline
align-items
-webkit-box-ordinal-group:<number>
order
-webkit-box-flex<number> 1
flex-grow
-webkit-flex-shrink<number> 0
flex-shrink
-webkit-flex-basis<width> auto   (无-moz-)
flex-basis
-webkit-box: <flex-grow> <flex-shrink> <flex-basis>    <1  0  auto>
flex
不支持
align-self
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
参考:
兼容多浏览器的预定义写法:

FlexBox标准及兼容写法速查表的更多相关文章

  1. bash基本命令速查表

    来源:https://github.com/skywind3000/awesome-cheatsheets/blob/master/languages/bash.sh ################ ...

  2. Bash中文速查表

    最好用的中文速查表(Cheatsheet) 来源:https://github.com/skywind3000/awesome-cheatsheets 感谢网友们的贡献! ############## ...

  3. Git 命令速查表

    Git 命令速查表 1.常用的Git命令 命令 简要说明 git add 添加至暂存区 git add-interactive 交互式添加 git apply 应用补丁 git am 应用邮件格式补丁 ...

  4. Git 常用命令速查表(图文+表格)

    一. Git 常用命令速查 git branch 查看本地所有分支git status 查看当前状态 git commit 提交 git branch -a 查看所有的分支git branch -r ...

  5. GNU Emacs命令速查表

    GNU Emacs命令速查表 第一章  Emacs的基本概念 表1-1:Emacs编辑器的主模式 模式 功能 基本模式(fundamental mode) 默认模式,无特殊行为 文本模式(text m ...

  6. vim基本命令速查表

    来源:https://github.com/skywind3000/awesome-cheatsheets/blob/master/editors/vim.txt ################## ...

  7. Git命令速查表【转】

    本文转载自:http://www.cnblogs.com/kenshinobiy/p/4543976.html 一. Git 常用命令速查 git branch 查看本地所有分支git status ...

  8. Git 常用命令速查表(图文+表格)【转】

    转自:http://www.jb51.net/article/55442.htm 一. Git 常用命令速查 git branch 查看本地所有分支git status 查看当前状态 git comm ...

  9. 【译】Swift 字符串速查表

    [译]Swift 字符串速查表 2015-12-18 10:32 编辑: suiling 分类:Swift 来源:CocoaChina翻译活动 10 5585 Swift字符串 招聘信息: iOS高级 ...

随机推荐

  1. 20161011001 treeView 递归

    protected void FillTree()        {            H_data H_data = new H_data(); H_data.sql_text1 = " ...

  2. Manthan, Codefest 16 -C. Spy Syndrome 2

    time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standa ...

  3. shell脚本自动化部署XX的案例(附数组使用)

    #!/bin/sh #Auto Make install MFS Files # cat <<EOF ++++++++++++++++Welcome To Use Auto Install ...

  4. Android 大图片预览ViewPager

    项目gitHub地址:  https://github.com/bm-x/PhotoView 个人项目gitHub地址:  https://github.com/anan03/ananwork/tre ...

  5. 历尽磨难之PL/SQL链接Oracle数据库

    说起来都是泪啊,上司布置的任务需要远程连接Oracle数据库,说实话这又是我人生中的第一次.我听到以后觉得不是什么大问题,然而我错了..错的很厉害! 我搞了一天一夜才弄好,这里面原因有很多,大体来讲还 ...

  6. Redis单机版本的安装

    我的是centos-6.5的环境,安装redis的单机版本 1.下载redis源文件redis-3.0.0.tar.gz到一个目录,我的下载目录是/software 2.编译安装源文件的先觉条件是安装 ...

  7. mysql服务器和配置优化

    一.存储引擎 mysql中有多种存储引擎,一般常见的有三种:   MyIsam InnoDB Memory 用途 快读 完整的事务支持 内存数据 锁 全表锁定 多种隔离级别的行锁 全表锁定 持久性 基 ...

  8. 企业办公3D指纹考勤系统解决方案

    员工准时.正常出勤是企业考勤制度的基本要求,然而目前签名式.卡钟式.IC卡考勤系统均存在代打卡.人情卡.不易统计等漏洞,而市面上的光学指纹考勤机存在识别能力差.识别速度慢.使用寿命短.不能完全杜绝指纹 ...

  9. DSO的记录模式Record Mode字段测试

    声明:原创作品,转载时请注明文章来自SAP师太技术博客( 博/客/园www.cnblogs.com):www.cnblogs.com/jiangzhengjun,并以超链接形式标明文章原始出处,否则将 ...

  10. Making my own Autonomous Robot in ROS / Gazebo, Day 2: Enable the robot

    Day 2: Enable the robot Git Setting git checkout master git branch day2_enable_robot git push --set- ...