display兼容写法

萝らか妹 提交于 2019-12-02 14:51:19

常用的display兼容性

display

display: -webkit-box; 
display: -moz-box; 
display: -ms-flexbox; 
display: -webkit-flex; 
display: flex;

justify-content

-webkit-box-pack: center;
-moz-justify-content: center;
-webkit-justify-content: center;
justify-content: center;

align-items

-webkit-box-align: center;
-moz-align-items: center;
-webkit-align-items: center;
align-items: center;

flex-direction

-webkit-box-direction: normal;
-webkit-box-orient: vertical;
-moz-flex-direction: column;
-webkit-flex-direction: column;
flex-direction: column;

flex:1

-webkit-box-flex: 1;
-ms-flex: 1;
flex: 1;
display: block;

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!