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

- 微信公众号

CSS3 column-width
属性定义及使用说明
column-width属性指定列的宽度。
默认值: | auto |
继承: | no |
版本: | CSS3 |
JavaScript 语法: | object.style.columnWidth="100px" |
浏览器支持
表格中的数字表示支持该属性的第一个浏览器版本号。
紧跟在 -webkit-, -ms- 或 -moz- 前的数字为支持该前缀属性的第一个浏览器版本号。
属性 | ![]() | ![]() | ![]() | ![]() | ![]() |
column-width | 50.0 4.0 -webkit- | 10.0 | 2.0 -moz- | 9.0 3.1 -webkit- | 37.0 15.0 -webkit 11.1 |
语法
column-width: auto|length;
属性值
值 | 描述 |
auto | 浏览器将决定列的宽度 |
length | 指定列宽的长度 |
指定列的宽度:
div { column-width:100px; -moz-column-width:100px; /* Firefox */ -webkit-column-width:100px; /* Safari and Chrome */ }
点击 "运行实例" 按钮查看在线实例
推荐手册