Kolom gaya Properti
Contoh
Bagi teks menjadi tiga kolom, masing-masing minimal 100 piksel:
document.getElementById("myDIV").style.columns = "100px 3";
Definisi dan Penggunaan
Properti kolom adalah properti singkatan untuk mengatur columnWidth dan columnCount.
Dukungan Peramban
Property | |||||
---|---|---|---|---|---|
columns | 50.0 | 10.0 | 52.0 | 10.0 | 37.0 |
Sintaksis
Kembalikan properti kolom:
object.style.columns
Setel properti kolom:
object.style.columns = "auto|column-width column-count|initial|inherit"
Nilai properti
Value | Description |
---|---|
auto | Default value. Sets both the column width to "auto" and the column-count to "auto" |
columnWidth | The width of the columns |
columnCount | The number of columns |
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: | mobil mobil |
---|---|
Nilai Kembali: | Sebuah String, mewakili properti kolom dari suatu elemen |
Versi CSS | CSS3 |
Halaman Terkait
Tutorial CSS3: Beberapa Kolom CSS3
Referensi CSS: properti kolom
Objek Gaya