CSS flex-flow properties
Examples
So that the elastic element cartridge in reverse order, and the lines were split when necessary:
flex-flow:row-reverse wrap;
try it"
Browser Support
Figures in the table represent the first browser to support the property version number.
Immediately following the digital -webkit-, -ms- or -moz- after the first version to support the prefix property.
Attributes | |||||
---|---|---|---|---|---|
flex-flow | 29.0 21.0 -webkit- | 11.0 10.0 -ms- | 28.0 18.0 -moz- | 9.0 6.1 -webkit- | 17.0 |
Definition and Usage
flex-flow properties are flex-direction property and flex-wrap composite properties.
Sub-element arrangement flex-flow property is used to set or retrieve the flexible pouch model objects.
flex-direction attribute specifies the direction of the flexible project.
flex-wrap attribute specifies flexible project is split row or column split.
Note: If theelement is not resilient element box object, the flex-flow property does not work.
Defaults: | row nowrap |
---|---|
inherit: | no |
Can be animated: | no. Please refer to animation (Animatable) . |
version: | CSS3 |
JavaScript syntax: | object .style.flexFlow = "column nowrap"try |
CSS Syntax
Property Value
值 | 描述 |
---|---|
flex-direction | 可能的值: row row-reverse column column-reverse initial inherit 默认值是 "row"。 规定灵活项目的方向。 |
flex-wrap | 可能的值: nowrap wrap wrap-reverse initial inherit 默认值是 "nowrap"。 规定灵活项目是否拆行或拆列。 |
initial | 设置该属性为它的默认值。请参阅 initial 。 |
inherit | 从父元素继承该属性。请参阅 inherit 。 |
related articles
CSS Reference: Flex Properties
CSS Reference Manual: Flex-Basis property
CSS Reference Manual: Flex-direction property
CSS Reference Manual: Flex-Grow property
CSS Reference Manual: Flex-Shrink property
CSS Reference Manual: Flex-wrap property