Latest web development tutorials

HTML DOM Style columnRuleColor property

Style Object Reference Style Objects

Examples

Predetermined color rules between columns:

document.getElementById("myDIV").style.columnRuleColor="blue";

try it"

Definition and Usage

columnRuleColor attribute specifies color rules between columns.


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Internet Explorer 10 and Opera support columnRuleColor property.

Firefox supports another alternative of the property attribute that MozColumnRuleColor property.

Safari and Chrome support another alternative of the property attribute that WebkitColumnRuleColor property.


grammar

Back columnRuleColor properties:

object .style.columnRuleColor

Setting columnRuleColor properties:

object .style.columnRuleColor="color|initial|inherit"

Property Value

描述
color 规定颜色规则。如需了解可能的颜色值的完整列表,请参阅 CSS 颜色值
initial 设置该属性为它的默认值。请参阅 initial
inherit 从父元素继承该属性。请参阅 inherit

technical details

Defaults: Current color elements
return value: String representing the column-rule-color attribute of the element.
CSS version CSS3


related articles

CSS3 tutorial: CSS3 multi-column

CSS Reference: column-rule-Color property


Style Object Reference Style Objects