flex相容

不負韶華發表於2019-02-15
.flex {
display: flex;
display: box;
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
}
.align-items {
align-items: center;
-webkit-align-items: center;
box-align: center;
-moz-box-align: center;
-webkit-box-align: center;
}
.flex-direction {
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-moz-box-orient: vertical;
-moz-box-direction: normal;
flex-direction: column;
-webkit-flex-direction: column;
}
.flex-wrap {
-webkit-flex-wrap: wrap;
-webkit-box-lines: multiple;
-moz-flex-wrap: wrap;
flex-wrap: wrap;
}
.justify-content {
-webkit-justify-content: center;
justify-content: center;
-moz-box-pack: center; 
-webkit--moz-box-pack: center;
box-pack: center;
}

 

相關文章