微信小程序开发
flex 布局(Flexible 布局,弹性布局)是在小程序开发经常使用的布局方式
官方文档
https://www.w3.org/TR/css-flexbox-1/
https://www.w3.org/TR/css-align-3/
◼ 开启了 flex 布局的元素叫 flex container
常用的CSS属性
flex布局模型
flex-direction
justify-content
align-items
flex-wrap
flex-flow
align-content
align-content
order
align-self
flex-grow![在这里插入图片描述](https://img-blog.csdnimg.cn/20200324113901227.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl80MjUyODI2Ng==,size_16,color_FFFFFF,t_70)
flex-shrink
flex-basis