शैली काउंटररीसेट संपत्ति
उदाहरण
काउंटर-रीसेट संपत्ति बदलें:
document.body.style.counterReset = "section";
परिभाषा और उपयोग
काउंटर रीसेट गुण एक या अधिक काउंटर बनाता या रीसेट करता है।
काउंटर रीसेट संपत्ति आमतौर पर काउंटरइन्क्रिमेंट संपत्ति और सामग्री संपत्ति के साथ प्रयोग की जाती है।
ब्राउज़र समर्थन
Property | |||||
---|---|---|---|---|---|
counterReset | Yes | Yes | Yes | Yes | Yes |
वाक्य - विन्यास
काउंटर रीसेट संपत्ति लौटाएं:
object.style.counterReset
काउंटर रीसेट संपत्ति सेट करें:
object.style.counterReset = "none|name number|initial|inherit"
सम्पत्ति की कीमत
Value | Description |
---|---|
none | Default value. No counters will be reset |
name | The name defines which counter that should be reset |
number | The id defines which counter that should be reset. The number sets the value the counter is set to on each occurrence of the selector. The default reset 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 |
❮ स्टाइल ऑब्जेक्ट