当前位置: 首页>后端>正文

flex弹性布局

display:flex | inline-flex

flex-direction:row | row-reverse | column | column-reverse

flex-wrap :nowrap |? wrap |? wrap-reverse;

justify-content:flext-start | flext-end | center | space-evenly | space-around | space-between

align-items:normal | stretch | flex-start | flex -end | center | baseline(纵轴上的对其)

align-content:针对多行的flex items在交叉轴对其方式。stretch | flex-start | flex -end | center |?space-evenly | space-around | space-between

order:值越小排在越前面

align-self:可以覆盖align-items。?stretch | flex-start | flex -end | center | baseline

flex-grow:

flex弹性布局,第1张
flex-grow

flex-shrink:

flex弹性布局,第2张
flex-shirink

flex-basis:

flex弹性布局,第3张
flex-basis

flex:

flex弹性布局,第4张
flex

https://www.xamrdz.com/backend/33d1997646.html

相关文章: