Specify the color of the rule between columns:
document.getElementById("myDIV").style.columnRuleColor = "blue";
Try it Yourself »
The columnRuleColor property specifies the color of the rule between columns.
Property | |||||
---|---|---|---|---|---|
columnRuleColor | 50.0 | 10.0 | 52.0 | 10.0 | 37.0 |
Return the columnRuleColor property:
object.style.columnRuleColor
Set the columnRuleColor property:
object.style.columnRuleColor
= "color|initial|inherit"
Value | Description |
---|---|
color | Specifies the color of the rule. Look at CSS Color Values for a complete list of possible color values |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
Default Value: | The current color of the element |
---|---|
Return Value: | A String, representing the column-rule-color property of an element |
CSS Version | CSS3 |
CSS3 tutorial: CSS3 Multiple Columns
CSS reference: column-rule-color property
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!