स्टाइल काउंटरइन्क्रीमेंट प्रॉपर्टी
उदाहरण
काउंटरइन्क्रिमेंट प्रॉपर्टी बदलें:
document.getElementById("myH1").style.counterIncrement = "subsection";
परिभाषा और उपयोग
काउंटरइन्क्रिमेंट प्रॉपर्टी एक या अधिक काउंटर वैल्यू बढ़ाती है।
काउंटरइन्क्रिमेंट प्रॉपर्टी का उपयोग आमतौर पर काउंटरसेट प्रॉपर्टी और कंटेंट प्रॉपर्टी के साथ किया जाता है।
ब्राउज़र समर्थन
Property | |||||
---|---|---|---|---|---|
counterIncrement | Yes | Yes | Yes | Yes | Yes |
वाक्य - विन्यास
काउंटरइन्क्रिमेंट प्रॉपर्टी लौटाएं:
object.style.counterIncrement
काउंटरइन्क्रिमेंट प्रॉपर्टी सेट करें:
object.style.counterIncrement = "none|id|initial|inherit"
सम्पत्ति की कीमत
Value | Description |
---|---|
none | Default value. No counters will be incremented |
id number | The id defines which counter that should be incremented. The number sets how much the counter will increment on each occurrence of the selector. The default increment is 1. 0 or negative values, are allowed. If the id refers to a counter that has not been initialized by counter-reset, the default initial value is 0 |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
टेक्निकल डिटेल
डिफ़ॉल्ट मान: | कोई नहीं |
---|---|
प्रतिलाभ की मात्रा: | एक स्ट्रिंग, एक तत्व की काउंटर-वृद्धि संपत्ति का प्रतिनिधित्व करती है |
सीएसएस संस्करण | सीएसएस 2 |
❮ स्टाइल ऑब्जेक्ट