Stil sütunları Özellik
Örnek
Metni, her biri en az 100 piksel olacak şekilde üç sütuna bölün:
document.getElementById("myDIV").style.columns = "100px 3";
Tanım ve Kullanım
Sütunlar özelliği, columnWidth ve columnCount'u ayarlamak için bir kestirme özelliktir.
Tarayıcı Desteği
Property | |||||
---|---|---|---|---|---|
columns | 50.0 | 10.0 | 52.0 | 10.0 | 37.0 |
Sözdizimi
Sütunlar özelliğini döndürün:
object.style.columns
Sütunlar özelliğini ayarlayın:
object.style.columns = "auto|column-width column-count|initial|inherit"
Mülk değerleri
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 |
Teknik detaylar
Varsayılan değer: | araba araba |
---|---|
Geri dönüş değeri: | Bir öğenin column özelliğini temsil eden bir String |
CSS Sürümü | CSS3 |
İlgili Sayfalar
CSS3 öğreticisi: CSS3 Çoklu Sütunları
CSS referansı: sütunlar özelliği
❮ Stil Nesnesi