作为程序员一定要保持良好的睡眠,才能好编程

浅谈Css3盒子模型

发布时间:2015-12-04

盒子模型的几个样式:


display:box;

box-fiex:1; 按照几份来划分

box-pack:start,end,center,justify 子容器的水平对齐方式

box-align:start,end,center,stretch  依次是:上、下、居中、拉伸

box-direction:用来确定子容器排列的顺序。 normal、reverse

box-orient:vertical,horizontal 子容器排列方式

针对于不同的浏览器执行不同的代码

-moz-display:box;

-webkit-display:box;

-ms-display:box