- HTML中文网
- 联系QQ:88526
- QQ交流群

- 微信公众号

CSS3 column-gap
属性定义及使用说明
column-gap的属性指定的列之间的差距。
注意: 如果指定了列之间的距离规则,它会取平均值。
默认值: | normal |
继承: | no |
版本: | CSS3 |
JavaScript 语法: | object.style.columnGap="40px" |
浏览器支持
属性 | ![]() | ![]() | ![]() | ![]() | ![]() |
column-gap | 50.0 4.0 -webkit- | 10.0 | 2.0 -moz- | 9.0 3.1 -webkit- | 37.0 15.0 -webkit 11.1 |
语法
column-gap: length|normal;
属性值
值 | 描述 |
length | 一个指定的长度,将设置列之间的差距 |
normal | 指定一个列之间的普通差距。 W3C建议1EM值 |
指定列之间的40个像素的差距:
div { column-gap:40px; -moz-column-gap:40px; /* Firefox */ -webkit-column-gap:40px; /* Safari and Chrome */ }
点击 "运行实例" 按钮查看在线实例
推荐手册