其他分享
首页 > 其他分享> > css flex

css flex

作者:互联网

css

flex

盒子

display: flex;
display: inline-flex;
flex-direction: row | row-reverse | column | column-reverse;
flex-wrap: nowrap | wrap | wrap-reverse;
justify-content: flex-start | flex-end | center | space-between | space-around
align-items: flex-start | flex-end | center | baseline | stretch;
align-content: flex-start | flex-end | center | space-between | space-around | stretch;

项目

order: <integer>;
flex-grow: <number>; /* default 0 */
flex-shrink: <number>; /* default 1 */
flex-basis: <length> | auto; /* default auto */
flex: none | [ <'flex-grow'> <'flex-shrink'>? || <'flex-basis'> ]
align-self: auto | flex-start | flex-end | center | baseline | stretch;

上下左右居中

display:flex
justify-content:space-around;
align-items:center

标签:flex,center,space,align,content,start,css
来源: https://www.cnblogs.com/jqynr/p/16460378.html