--- title: flex-flow slug: Web/CSS/flex-flow translation_of: Web/CSS/flex-flow ---
{{ CSSRef("CSS Flexible Boxes") }}

概述

CSS flex-flow 属性是 flex-direction 和 flex-wrap 的简写。

{{cssinfo}}

更多信息参见 使用 CSS 弹性盒

语法

Formal syntax: {{csssyntax("flex-flow")}}

取值

更多取值信息请查看 flex-directionflex-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;
}

查询参考

Specification Status Comment
CSS Flexible Box Layout Module {{ Spec2('CSS3 Flexbox') }}  

浏览器兼容性

{{Compat("css.properties.flex-flow")}}

另参见