Kolom gaya , Hitung Properti
Contoh
Bagi teks dalam elemen div menjadi tiga kolom:
document.getElementById("myDIV").style.columnCount = 3;
Definisi dan Penggunaan
Properti columnCount menentukan jumlah kolom yang harus dibagi menjadi elemen.
Dukungan Peramban
Property | |||||
---|---|---|---|---|---|
columnCount | 50.0 | 10.0 | 52.0 | 10.0 | 37.0 |
Sintaksis
Kembalikan properti columnCount:
object.style.columnCount
Setel properti columnCount:
object.style.columnCount = "number|auto|initial|inherit"
Nilai properti
Value | Description |
---|---|
number | The optimal number of columns into which the content of the element will be flowed |
auto | Default value. The number of columns will be determined by other properties, like e.g. "column-width" |
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 |
---|---|
Nilai Kembali: | Sebuah String, mewakili properti jumlah kolom dari suatu elemen |
Versi CSS | CSS3 |
Halaman Terkait
Tutorial CSS3: Beberapa Kolom CSS3
Referensi CSS: properti jumlah kolom
Objek Gaya