Właściwość reguły kolumny stylu
Przykład
Określ szerokość, styl i kolor reguły między kolumnami:
document.getElementById("myDIV").style.columnRule = "3px outset blue";
Definicja i użycie
Właściwość columnRule jest skróconą właściwością służącą do ustawiania wszystkich właściwości columnRule.
Właściwość columnRule ustawia szerokość, styl i kolor reguły między kolumnami.
Właściwości reguły kolumn to w dowolnej kolejności:
columnRuleColor
columnRuleStyle
columnRuleWidth
Obsługa przeglądarki
Property | |||||
---|---|---|---|---|---|
columnRule | 50.0 | 10.0 | 52.0 | 10.0 | 37.0 |
Składnia
Zwróć właściwość columnRule:
object.style.columnRule
Ustaw właściwość columnRule:
object.style.columnRule = "column-rule-width column-rule-style column-rule-color|initial|inherit"
Wartości nieruchomości
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 |
Szczegóły techniczne
Domyślna wartość: | średni brak koloru |
---|---|
Wartość zwrotu: | String, reprezentujący właściwość reguły kolumny elementu |
Wersja CSS | CSS3 |
Powiązane strony
Samouczek CSS3: Wiele kolumn CSS3
Dokumentacja CSS: właściwość reguły kolumny
❮ Obiekt stylu