शैली स्तंभगणना संपत्ति
उदाहरण
पाठ को div तत्व में तीन स्तंभों में विभाजित करें:
document.getElementById("myDIV").style.columnCount = 3;
परिभाषा और उपयोग
कॉलमकाउंट गुण उन स्तंभों की संख्या निर्दिष्ट करता है जिनमें एक तत्व को विभाजित किया जाना चाहिए।
ब्राउज़र समर्थन
Property | |||||
---|---|---|---|---|---|
columnCount | 50.0 | 10.0 | 52.0 | 10.0 | 37.0 |
वाक्य - विन्यास
कॉलमकाउंट संपत्ति लौटाएं:
object.style.columnCount
कॉलमकाउंट संपत्ति सेट करें:
object.style.columnCount = "number|auto|initial|inherit"
सम्पत्ति की कीमत
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 |
टेक्निकल डिटेल
डिफ़ॉल्ट मान: | ऑटो |
---|---|
प्रतिलाभ की मात्रा: | एक स्ट्रिंग, एक तत्व की कॉलम-गिनती संपत्ति का प्रतिनिधित्व करती है |
सीएसएस संस्करण | CSS3 |
संबंधित पृष्ठ
CSS3 ट्यूटोरियल: CSS3 एकाधिक कॉलम
सीएसएस संदर्भ: कॉलम-गिनती संपत्ति
❮ स्टाइल ऑब्जेक्ट