Change the width of the columns:
document.getElementById("myDIV").style.columnWidth = "100px";
Try it Yourself »
The columnWidth property specifies the width of the columns.
Property | |||||
---|---|---|---|---|---|
columnWidth | 50.0 | 10.0 | 52.0 | 10.0 | 37.0 |
Return the columnWidth property:
object.style.columnWidth
Set the columnWidth property:
object.style.columnWidth = "auto|
length|initial|inherit"
Value | Description |
---|---|
auto | Deafult value. The column width will be determined by the browser |
length | A length that specifies the width of the columns |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
Default Value: | auto |
---|---|
Return Value: | A String, representing the column-width property of an element |
CSS Version | CSS3 |
CSS3 tutorial: CSS3 Multiple Columns
CSS reference: column-width property
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!