伸缩布局
Posted blogging
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了伸缩布局相关的知识,希望对你有一定的参考价值。
.flexcontainer{ display: -webkit-flex; display: flex; }//创建Flex容器 .flexcontainer{ display: -webkit-flex; display: flex; -webkit-flex- direction: column; flex-direction: column; }//Flex列显示 .flexcontainer{ -webkit-flex-direction: column; flex-direction: column; -webkit-justify-content: flex-start; justify-content: flex-start; }//水平方向Flex移动到顶部 .flexcontainer{ display: -webkit-flex; display: flex; -webkit-flex-direction: row; flex-direction: row; -webkit-align-items: flex-start; align-items: flex-start; }//垂直方向Flex移动到顶部
.flexcontainer{ display: -webkit-flex; display: flex; -webkit-flex-direction: row; flex-direction: row; -webkit-justify-content: flex-end; justify-content: flex-end; }//Flex水平移动到右边
.flexcontainer{ display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; -webkit-align-items: flex-end; align-items: flex-end; }//Flex垂直移动到右边
.flexcontainer{ display: -webkit-flex; display: flex; -webkit-flex-direction: row; flex-direction: row; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; }//Flex水平移动到中间
.flexcontainer{ display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; }//Flex垂直移动到中间
.bigitem{ -webkit-flex:200; flex:200; } .smallitem{ -webkit-flex:100; flex:100; }//自动伸缩
以上是关于伸缩布局的主要内容,如果未能解决你的问题,请参考以下文章