Styl kolumn Właściwość
Przykład
Podziel tekst na trzy kolumny po minimum 100 pikseli każda:
document.getElementById("myDIV").style.columns = "100px 3";
Definicja i użycie
Właściwość Columns jest skróconą właściwością służącą do ustawiania columnWidth i columnCount.
Obsługa przeglądarki
Property | |||||
---|---|---|---|---|---|
columns | 50.0 | 10.0 | 52.0 | 10.0 | 37.0 |
Składnia
Zwróć właściwość kolumn:
object.style.columns
Ustaw właściwość kolumn:
object.style.columns = "auto|column-width column-count|initial|inherit"
Wartości nieruchomości
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 |
Szczegóły techniczne
Domyślna wartość: | Samochód samochód |
---|---|
Wartość zwrotu: | String, reprezentujący właściwość column elementu |
Wersja CSS | CSS3 |
Powiązane strony
Samouczek CSS3: Wiele kolumn CSS3
Odniesienie CSS: właściwość kolumn
❮ Obiekt stylu