Kolom gayaSpan Property
Contoh
Biarkan elemen h2 menjangkau semua kolom:
document.getElementById("myDIV").style.columnSpan = "all";
Definisi dan Penggunaan
Properti columnSpan menentukan berapa banyak kolom yang harus dibentangkan oleh suatu elemen.
Dukungan Peramban
Property | |||||
---|---|---|---|---|---|
columnSpan | 50.0 | 10.0 | 71.0 | 10.0 | 37.0 |
Sintaksis
Kembalikan properti columnSpan:
object.style.columnSpan
Setel properti columnSpan:
object.style.columnSpan = "1|all|initial|inherit"
Nilai properti
Value | Description |
---|---|
1 | Default value. The element should span across one column |
all | The element should span across all 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: | 1 |
---|---|
Nilai Kembali: | Sebuah String, mewakili properti kolom-span dari suatu elemen |
Versi CSS | CSS3 |
Halaman Terkait
Tutorial CSS3: Beberapa Kolom CSS3
Referensi CSS: properti rentang kolom
Objek Gaya