

English
CSS 的 flex-wrap 属性指定 flex 元素单行显示还是多行显示。如果允许换行,这个属性允许你控制行的堆叠方向。
flex-wrap: nowrap | wrap | wrap-reverse;
nowrap
flex 的元素被摆放到到一行,这可能导致 flex 容器溢出。cross-start 会根据 flex-direction 的值等价于 start 或 before。为该属性的默认值。
wrap
The flexbox is multi-line.
wrap-reverse
和 wrap 的行为一样,但是 cross-start 和 cross-end 互换。
Platform | default |
---|---|
app-uvue | nowrap |
web | nowrap |
Android version | Android uni-app | Android uni-app-x | iOS version | iOS uni-app | iOS uni-app-x | |
---|---|---|---|---|---|---|
flex-wrap | 5.0 | √ | 3.9+ | 9.0 | √ | - |