Styl sloupec Vlastnost pravidla
Příklad
Zadejte šířku, styl a barvu pravidla mezi sloupci:
document.getElementById("myDIV").style.columnRule = "3px outset blue";
Definice a použití
Vlastnost columnRule je zkrácená vlastnost pro nastavení všech vlastností columnRule.
Vlastnost columnRule nastavuje šířku, styl a barvu pravidla mezi sloupci.
Vlastnosti pravidla sloupců jsou v libovolném pořadí:
columnRuleColor
columnRuleStyle
columnRuleWidth
Podpora prohlížeče
Property | |||||
---|---|---|---|---|---|
columnRule | 50.0 | 10.0 | 52.0 | 10.0 | 37.0 |
Syntax
Vraťte vlastnost columnRule:
object.style.columnRule
Nastavte vlastnost columnRule:
object.style.columnRule = "column-rule-width column-rule-style column-rule-color|initial|inherit"
Hodnoty vlastností
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 |
Technické údaje
Výchozí hodnota: | střední žádná barva |
---|---|
Návratová hodnota: | Řetězec představující vlastnost sloupec-pravidlo prvku |
Verze CSS | CSS3 |
Související stránky
CSS3 tutoriál: CSS3 Multiple Columns
CSS reference: vlastnost column-rule
❮ Objekt stylu