其他分享
首页 > 其他分享> > CSS flex-direction 属性

CSS flex-direction 属性

作者:互联网

CSS flex-direction 属性

定义和用法

flex-direction 属性规定灵活项目的方向。

注意:如果元素不是弹性盒对象的元素,则 flex-direction 属性不起作用。

默认值: row
继承:
可动画化: 否。请参阅 可动画化(animatable)
版本: CSS3
JavaScript 语法: object.style.flexDirection="column-reverse"

CSS 语法

flex-direction: row|row-reverse|column|column-reverse|initial|inherit;

 

row 默认值。灵活的项目将水平显示,正如一个行一样。

column 灵活的项目将垂直显示,正如一个列一样。

 

标签:flex,direction,reverse,column,CSS,row
来源: https://www.cnblogs.com/yeminglong/p/16025386.html