Stil columnCount Özellik
Örnek
div öğesindeki metni üç sütuna bölün:
document.getElementById("myDIV").style.columnCount = 3;
Tanım ve Kullanım
columnCount özelliği, bir öğenin bölünmesi gereken sütun sayısını belirtir.
Tarayıcı Desteği
Property | |||||
---|---|---|---|---|---|
columnCount | 50.0 | 10.0 | 52.0 | 10.0 | 37.0 |
Sözdizimi
columnCount özelliğini döndürün:
object.style.columnCount
columnCount özelliğini ayarlayın:
object.style.columnCount = "number|auto|initial|inherit"
Mülk değerleri
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 |
Teknik detaylar
Varsayılan değer: | Oto |
---|---|
Geri dönüş değeri: | Bir öğenin sütun sayısı özelliğini temsil eden bir Dize |
CSS Sürümü | CSS3 |
İlgili Sayfalar
CSS3 öğreticisi: CSS3 Çoklu Sütunları
CSS referansı: sütun sayısı özelliği
❮ Stil Nesnesi