Flex佈局css
兼容寫法:html
.flex-box{ display: -webkit-box; display: -moz-box; display: -ms-flexbox; display: -webkit-flex; display: flex; } .flex-row{ -webkit-box-orient: horizontal; box-orient: horizontal; -webkit-flex-direction: row; flex-direction: row; } .flex-col{ -webkit-box-orient: vertical; box-orient: vertical; -webkit-flex-direction: column; flex-direction: column; } .flex-justify{ -webkit-box-pack: justify; -moz-box-pack: justify; -ms-flex-pack: justify; -webkit-box-align: center; -moz-box-align: justify; -ms-flex-align: center; justify-content: space-between; align-content: center; } .flex-1{ -webkit-box-flex: 1; -moz-box-flex: 1; -ms-flex: 1; -webkit-flex:1; box-flex: 1; flex:1; }
注意知識點:web
基礎學習&閱讀:瀏覽器