您的位置:首页 > Web前端 > CSS

CSS-布局相关

2015-06-03 19:07 585 查看
多栏布局
column-count: n - 栏数
column-width: width - 栏宽(可以单独设定每一栏的宽度,也可以只设定元素的宽度,然后自适应)
column-gap: width - 栏间距
column-rule: 2px solid red - 间隔线

盒布局
display: box - 使用盒布局
box-flex: 1 - 采用弹性宽度(至少为1的整数)
box-flex-group: 1 - 弹性分组
box-ordinal-group: 1 - 改变显示顺序(从小到大排列,不指定此属性的会优先显示)
box-orient: (vertical | horizontal) - 改变排列方向
box-direction: (normal | reverse | inherit) - 显示顺序
box-align: (start | center | end | baseline | skretch) - 子元素对齐方式
box-pack: (start | center | end | justify) - 设定水平框的水平位置或垂直框的垂直位置
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  css