css3 -webkit-flex 布局_html/css_WEB-ITnose
Web的Flex弹性盒模型 Web的Flex弹性盒模型
[ flex ]
display: -webkit-flex;
width:100px;flex: 2;flex: 1;display: -webkit-flex;
width:150px; margin-right:10px;flex: 1;width:150px; margin-left:10px;[ flex-direction ]
flex-direction: row; /*default*/
display: -webkit-flex;
flex: 1;flex: 2;flex: 3;flex-direction: row-reverse;
display: -webkit-flex;
flex: 1;flex: 2;flex: 3;flex-direction: column;
display: -webkit-flex;
flex: 1;flex: 2;flex: 3;flex-direction: column-reverse;
display: -webkit-flex;
flex: 1;flex: 2;flex: 3;[ flex-wrap ]
-webkit-flex-wrap: nowrap; /* default */
display: -webkit-flex;
width: 400px
100px;width: 200px;width: 300px;-webkit-flex-wrap: wrap
display: -webkit-flex;
width: 400px
100px;width: 200px;width: 300px;-webkit-flex-wrap: wrap-reverse
display: -webkit-flex;
width: 400px
100px;width: 200px;width: 300px;[ flex-flow ]: flex-direction flex-wrap; /* 自个体会吧 */
[ justify-content ]
/* 效果如同 float:left; */
justify-content: flex-start; /* default */
display: -webkit-flex;
width:100px;width:100px;/* 效果如同 float:right; */
justify-content: flex-end;
display: -webkit-flex;
width:100px;width:100px;/* 第三代水平居中方案 */
justify-content: center;
display: -webkit-flex;
width:100px;width:100px;justify-content: space-between;
display: -webkit-flex;
width:100px;width:100px;justify-content: space-around;
display: -webkit-flex;
width:100px;width:100px;[ align-self ]
display: -webkit-flex;
align-self:flex-start;align-self:flex-end;align-self:center;align-self:auto; /*default */align-self:baseline;align-self:stretch;[ align-items ]
align-items: flex-start; /* default */
display: -webkit-flex;
width:100px;width:100px;align-items: flex-end;
display: -webkit-flex;
width:100px;width:100px;/* 第三代垂直居中 */
align-items: center;
display: -webkit-flex;
width:100px;width:100px;align-items: baseline;
display: -webkit-flex;
width:100px;width:100px;align-items: stretch;
display: -webkit-flex;
height:100px;min-height:20px;max-height:60px;[ align-content ]
/* 对比 align-items*/
align-items: flex-start
display: -webkit-flex;
abcdefalign-content: flex-start;
display: -webkit-flex;
abcdefalign-content: flex-end;
display: -webkit-flex;
abcdefalign-content: center;
display: -webkit-flex;
abcdefalign-content: space-between;
display: -webkit-flex;
abcdefalign-content: space-around;
display: -webkit-flex;
abcdefalign-content: stretch; /*default*/
display: -webkit-flex;
abcdef[ order ]
display: -webkit-flex;
abcd (order:-1)ef
推荐阅读
-
纯CSS3实现图片展示特效_html/css_WEB-ITnose
-
CSS3之圆角_html/css_WEB-ITnose
-
前端基础??CSS+DIV布局_html/css_WEB-ITnose
-
?4种实现多列布局css_html/css_WEB-ITnose
-
css3中的content和实体_html/css_WEB-ITnose
-
一款纯css3实现的响应式导航_html/css_WEB-ITnose
-
CSS3之弹性布局_html/css_WEB-ITnose
-
CSS3 实现六边形Div图片展示效果_html/css_WEB-ITnose
-
一款简洁的纯css3代码实现的动画导航_html/css_WEB-ITnose
-
漫谈css布局_html/css_WEB-ITnose