伸缩布局 - 小记 (^▽^)
<h1 class="md-end-block md-heading md-focus"><span class="md-expand">伸缩布局
display: flex; (父元素)必须将父元素设置为伸缩盒子(弹性盒子)在伸缩盒子中,默认子元素在一行显示,这是伸缩盒子的特点,与脱标无关!
flex-direction: row; (父元素)
row 行(横向);column 列(纵向);row-revers (横向反转,从右向左,类似右浮动);column-reverse(竖直反转);justify-content: flex-start; (父元素)
flex-star;
flex-end;
center;
space-between;
space-around;
space-evenly; (ios专有)
align-items: stretch; (父元素)
stretch; (默认)
flex-start;flex-end;center;flex-wrap: nowrap; (父元素)
nowrap;(默认)wrap - 换行align-content: stretch; (父元素)
flex-start;flex-end;center;space-around;space-between;stretch; (默认)space-evenly; (ios专有)flex: 1; (子元素)
order
?(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |