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