Style columnRuleColor Attribute
- 上一页 columnRule
- 下一页 columnRuleStyle
- 返回上一层 HTML DOM Style Object
Definition and Usage
columnRuleColor
Specifies the color of the rule between columns.
See Also:
CSS3 Tutorial:CSS 多列
CSS Reference Manual:column-rule-color Attribute
Example
Specify the color of the rule between columns:
document.getElementById("myDIV").style.columnRuleColor = "blue";
Syntax
Return columnRuleColor Attribute:
object.style.columnRuleColor
Set columnRuleColor Attribute:
object.style.columnRuleColor = "color|initial|inherit"
Property Value
Value | Description |
---|---|
color |
the color specified by the rule. See CSS Color Valuesfor the complete list of possible color values. |
initial | Sets this property to its default value. See initial. |
inherit | Inherits this property from its parent element. See inherit. |
Technical Details
Default Value: | current color of the element. |
---|---|
Return Value: | String, representing the column-rule-color Attribute. |
CSS Version: | CSS3 |
Browser Support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
50.0 | 10.0 | 52.0 | 10.0 | 37.0 |
- 上一页 columnRule
- 下一页 columnRuleStyle
- 返回上一层 HTML DOM Style Object