--- title: flex-flow slug: Web/CSS/flex-flow translation_of: Web/CSS/flex-flow ---
flex-flow
CSS свойство, которое является сокращением для отдельных свойств flex-direction
и flex-wrap
.
/* flex-flow: <'flex-direction'> */ flex-flow: row; flex-flow: row-reverse; flex-flow: column; flex-flow: column-reverse; /* flex-flow: <'flex-wrap'> */ flex-flow: nowrap; flex-flow: wrap; flex-flow: wrap-reverse; /* flex-flow: <'flex-direction'> and <'flex-wrap'> */ flex-flow: row nowrap; flex-flow: column wrap; flex-flow: column-reverse wrap-reverse; /* Global values */ flex-flow: inherit; flex-flow: initial; flex-flow: unset;
{{cssinfo}}
Больше информации и свойств описано в Using CSS flexible boxes.
Смотрите flex-direction
и flex-wrap
.
element { /* Main-axis is the block direction with reversed main-start and main-end. Flex items are laid out in multiple lines */ flex-flow: column-reverse wrap; }
Спецификация | Статус | Комментарий |
---|---|---|
{{ SpecName('CSS3 Flexbox','#flex-flow','flex-flow') }} | {{ Spec2('CSS3 Flexbox') }} | Начальное значение |
{{Compat("css.properties.flex-flow")}}