CSS flex-stroom eigenschap
- 上一页 flex-direction
- 下一页 flex-grow
Definition and usage
The flex-flow property is a shorthand property for the following properties:
Note:If the element is not a flexible item, the flex property is invalid.
See also:
CSS tutorial:CSS flexible box
CSS reference manual:flex property
CSS reference manual:flex-direction property
CSS reference manual:flex-basis property
CSS reference manual:flex-grow property
CSS reference manual:flex-shrink property
CSS reference manual:flex-wrap property
HTML DOM reference manual:flexFlow property
Example
Display flexible items in reverse direction and wrap when needed:
div { display: flex; flex-flow: row-reverse wrap; }
CSS syntax
flex-flow: flex-direction flex-wrap|initial|inherit;
Attribute value
Value | Description |
---|---|
flex-direction |
Possible values:
The default value is "row". Specify the direction of the flexible items. |
flex-wrap |
Possible values:
The default value is "nowrap". Specify whether the flexible item should wrap. |
initial | Sets this property to its default value. See initial. |
inherit | Inherits this property from its parent element. See inherit. |
Technical details
Default value: | row nowrap |
---|---|
Inheritance: | No |
Animation creation: | Not supported. See:Animation-related properties. |
Versie: | CSS3 |
JavaScript syntax: | object.style.flexFlow="column nowrap" |
Browserondersteuning
De nummers in de tabel vermelden de eerste browserversie die de eigenschap volledig ondersteunt.
Volg de nummerering van de eerste versie die de prefixen -webkit-, -ms- of -moz- gebruikt.
Chrome | IE / Edge | Firefox | Safari | Opera |
---|---|---|---|---|
29.0 21.0 -webkit- |
11.0 | 28.0 18.0 -moz- |
9.0 6.1 -webkit- |
17.0 |
- 上一页 flex-direction
- 下一页 flex-grow