flex-direction:row | row-reverse | column | column-reverse
默认值:row
适用于:flex容器
继承性:无
动画性:否
计算值:指定值
Code:
- a
- b
- c
#box {
display: flex;
flex-direction: row-reverse;
list-style: none;
}
请自行根据需要补全厂商前缀。flex生效需定义 <' display '> 为flex或inline-flex(box或inline-box,这是旧的方式)
Values | IE | Firefox | Chrome | Safari | Opera | iOS Safari | Android Browser | Android Chrome |
---|---|---|---|---|---|---|---|---|
Basic Support | 6.0-10.0 | 2.0-21.0 | 4.0-20.0 | 6.0 | 15.0+-webkit- | 6.0-6.1 | 2.1-4.3 | 18.0-19.0 |
11.0+ | 22.0+ | 21.0+-webkit- | 6.1+-webkit- | 17.0+ | 7.0+-webkit- | 4.4+ | 20.0+-webkit- | |
29.0+ | 9.0+ | 9.0+ | 28.0+ |