Latest web development tutorials

Properti HTML DOM Style columnRule

Gaya Referensi Obyek gaya Objects

contoh

Sebuah lebar, gaya, dan aturan warna yang telah ditentukan antara kolom:

document.getElementById("myDIV").style.columnRule="3px outset blue";

Coba »

Definisi dan Penggunaan

Properti columnRule adalah properti singkat untuk setting semua columnRule * properti.

sifat columnRule mengatur lebar, gaya, dan aturan warna antara kolom.


Dukungan Browser

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Internet Explorer 10 dan dukungan Opera properti columnRule.

Firefox mendukung alternatif lain dari atribut properti yang MozColumnRule properti.

Safari dan Chrome mendukung alternatif lain dari properti atribut bahwa properti WebkitColumnRule.


tatabahasa

Kembali sifat columnRule:

object .style.columnRule

Pengaturan properti columnRule:

object .style.columnRule="column-rule-width column-rule-style column-rule-color|initial|inherit"

Nilai properti

描述
columnRuleWidth 设置列之间的宽度规则。默认值是 medium。
columnRuleStyle 设置列之间的样式规则。默认值是 none。
columnRuleColor 设置列之间的颜色规则。默认值是元素的颜色。
initial 设置该属性为它的默认值。请参阅 initial
inherit 从父元素继承该属性。请参阅 inherit

rincian teknis

default: warna none menengah
Pengembalian: String yang mewakili kolom-aturan elemen properti.
versi CSS CSS3


Artikel terkait

CSS3 tutorial: CSS3 multi-kolom

CSS Referensi: properti kolom-aturan


Gaya Referensi Obyek gaya Objects