在我们做移动端项目的时候,弹性盒模型经常会用到,初学者经常会搞不清它的属性。下面主要了解一下弹性盒子的五个属性。
下面展示效果
flex-direction: row;
flex-direction: row-reverse;
flex-direction: column;
flex-direction: column-reverse;
下面展示效果
justify-content:flex-start
justify-content:flex-end
justify-content:center
justify-content:space-between
justify-content:space-around
下面展示效果
align-items:flex-start
align-items:flex-end
align-items:center
align-items:baseline
align-items:stretch
下面展示效果
flex-wrap:nowrap
flex-wrap:wrap
flex-wrap:wrap-reverse
下面展示效果
align-content:flex-start
align-content:flex-end
align-content:center
align-content:space-bewteen
align-content:space-around
上面五个属性是给弹性盒子设置的属性,那么弹性子元素的属性呢?