目录

style columnFill 属性

示例

指定如何填充列:

document.getElementById("myDIV").style.columnFill = "balance";
亲自试一试 »

描述

columnFill 属性指定如何填充列(平衡或非平衡)。


浏览器支持

Property
columnFill 50.0 10.0 52.0 10.0 37.0

语法

返回columnFill属性:

object.style.columnFill

设置列填充属性:

object.style.columnFill = "balance|auto|initial|inherit"

属性值

Value Description
balance Default value. Columns are balanced. Browsers should minimize the variation in column length
auto Columns are filled sequentially, and they will have different lengths
initial Sets this property to its default value. Read about initial
inherit Inherits this property from its parent element. Read about inherit

技术细节

默认值: 平衡
返回值: 一个字符串,表示元素的列填充属性
CSS版本 CSS3

相关页面

CSS3教程:CSS3 多列

CSS 参考:列填充属性