Properti Aturan kolom gaya
Contoh
Tentukan lebar, gaya, dan warna aturan antar kolom:
document.getElementById("myDIV").style.columnRule = "3px outset blue";
Definisi dan Penggunaan
Properti columnRule adalah properti singkatan untuk mengatur semua properti columnRule.
Properti columnRule menyetel lebar, gaya, dan warna aturan antar kolom.
Properti aturan kolom adalah, dalam urutan apa pun:
kolomRuleColor
columnRuleStyle
columnRuleWidth
Dukungan Peramban
Property | |||||
---|---|---|---|---|---|
columnRule | 50.0 | 10.0 | 52.0 | 10.0 | 37.0 |
Sintaksis
Kembalikan properti columnRule:
object.style.columnRule
Setel properti columnRule:
object.style.columnRule = "column-rule-width column-rule-style column-rule-color|initial|inherit"
Nilai properti
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 |
Detail Teknis
Nilai Bawaan: | sedang tidak ada warna |
---|---|
Nilai Kembali: | Sebuah String, mewakili properti aturan kolom dari suatu elemen |
Versi CSS | CSS3 |
Halaman Terkait
Tutorial CSS3: Beberapa Kolom CSS3
Referensi CSS: properti aturan kolom
Objek Gaya