Estilo columnRule Property
Exemplo
Especifique a largura, estilo e cor da regra entre as colunas:
document.getElementById("myDIV").style.columnRule = "3px outset blue";
Definição e uso
A propriedade columnRule é uma propriedade abreviada para definir todas as propriedades columnRule.
A propriedade columnRule define a largura, o estilo e a cor da regra entre as colunas.
As propriedades da regra de coluna são, em qualquer ordem:
columnRuleColor
columnRuleStyle
columnRuleWidth
Suporte ao navegador
Property | |||||
---|---|---|---|---|---|
columnRule | 50.0 | 10.0 | 52.0 | 10.0 | 37.0 |
Sintaxe
Retorne a propriedade columnRule:
object.style.columnRule
Defina a propriedade columnRule:
object.style.columnRule = "column-rule-width column-rule-style column-rule-color|initial|inherit"
Valores de propriedade
Value | Description |
---|---|
columnRuleWidth | Sets the width of the rule between columns. Default value is medium |
columnRuleStyle | Sets the style of the rule between columns. Default value is none |
columnRuleColor | Sets the color of the rule between columns. Default value is the color of the element |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
Detalhes técnicos
Valor padrão: | meio sem cor |
---|---|
Valor de retorno: | Uma String, representando a propriedade de regra de coluna de um elemento |
Versão CSS | CSS3 |
Páginas relacionadas
Tutorial CSS3: várias colunas CSS3
Referência CSS: propriedade de regra de coluna
❮ Objeto de estilo