Stylkolomme Eiendom _
Voorbeeld
Verdeel die teks in drie kolomme, minimum 100 pixels elk:
document.getElementById("myDIV").style.columns = "100px 3";
Definisie en gebruik
Die kolomme-eienskap is 'n snelskrif-eienskap om columnWidth en columnCount in te stel.
Blaaierondersteuning
Property | |||||
---|---|---|---|---|---|
columns | 50.0 | 10.0 | 52.0 | 10.0 | 37.0 |
Sintaksis
Gee die kolomme-eienskap terug:
object.style.columns
Stel die kolomme-eienskap:
object.style.columns = "auto|column-width column-count|initial|inherit"
Eiendomswaardes
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 |
Tegniese besonderhede
Standaard waarde: | motor kar |
---|---|
Terugkeerwaarde: | 'n String, wat die kolomme-eienskap van 'n element verteenwoordig |
CSS weergawe | CSS3 |
Verwante bladsye
CSS3 handleiding: CSS3 Veelvuldige kolomme
CSS verwysing: kolomme eiendom
❮ Stylvoorwerp