نمط خاصية counterIncrement
مثال
قم بتغيير خاصية counterIncrement:
document.getElementById("myH1").style.counterIncrement = "subsection";
التعريف والاستخدام
تزيد الخاصية counterIncrement من قيمة العداد أو أكثر.
عادةً ما تُستخدم خاصية counterIncrement مع خاصية counterReset وخاصية المحتوى.
دعم المتصفح
Property | |||||
---|---|---|---|---|---|
counterIncrement | Yes | Yes | Yes | Yes | Yes |
بناء الجملة
إعادة الخاصية counterIncrement:
object.style.counterIncrement
قم بتعيين خاصية 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 |
تفاصيل تقنية
القيمة الافتراضية: | لا أحد |
---|---|
قيمة الإرجاع: | سلسلة ، تمثل خاصية الزيادة المضادة لعنصر |
إصدار CSS | CSS2 |
❮ نمط الكائن