Style columnCount Właściwość
Przykład
Podziel tekst w elemencie div na trzy kolumny:
document.getElementById("myDIV").style.columnCount = 3;
Definicja i użycie
Właściwość columnCount określa liczbę kolumn, na które należy podzielić element.
Obsługa przeglądarki
Property | |||||
---|---|---|---|---|---|
columnCount | 50.0 | 10.0 | 52.0 | 10.0 | 37.0 |
Składnia
Zwróć właściwość columnCount:
object.style.columnCount
Ustaw właściwość columnCount:
object.style.columnCount = "number|auto|initial|inherit"
Wartości nieruchomości
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 |
Szczegóły techniczne
Domyślna wartość: | automatyczny |
---|---|
Wartość zwrotu: | String, reprezentujący właściwość licznika kolumn elementu |
Wersja CSS | CSS3 |
Powiązane strony
Samouczek CSS3: Wiele kolumn CSS3
Odniesienie CSS: właściwość liczenia kolumn
❮ Obiekt stylu