Specify how to fill columns:
document.getElementById("myDIV").style.columnFill = "balance";
Try it Yourself »
The columnFill property specifies how to fill columns, balanced or not.
Property | |||||
---|---|---|---|---|---|
columnFill | 50.0 | 10.0 | 52.0 | 10.0 | 37.0 |
Return the columnFill property:
object.style.columnFill
Set the columnFill property:
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 |
Default Value: | balance |
---|---|
Return Value: | A String, representing the column-fill property of an element |
CSS Version | CSS3 |
CSS3 tutorial: CSS3 Multiple Columns
CSS reference: column-fill property
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!