ပုံစံ counterIncrement Property
ဥပမာ
တန်ပြန်တိုးမြှင့်မှု ပိုင်ဆိုင်မှုကို ပြောင်းပါ-
document.getElementById("myH1").style.counterIncrement = "subsection";
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
တန်ပြန်တိုးမြှင့်မှုပိုင်ဆိုင်မှုသည် တန်ပြန်တန်ဖိုးတစ်ခု သို့မဟုတ် တစ်ခုထက်ပိုသော တန်ပြန်တန်ဖိုးများကို တိုးစေသည်။
counterIncrement ပိုင်ဆိုင်မှုကို အများအားဖြင့် counterReset property နှင့် content property တို့နှင့် တွဲသုံးပါသည်။
Browser ပံ့ပိုးမှု
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 |
နည်းပညာဆိုင်ရာအသေးစိတ်
မူလတန်ဖိုး: | မရှိ |
---|---|
ပြန်ပို့တန်ဖိုး- | ဒြပ်စင်တစ်ခု၏ တန်ပြန်တိုးမြှင်မှုကို ကိုယ်စားပြုသည့် စာကြောင်းတစ်ခု |
CSS ဗားရှင်း | CSS2 |
❮ စတိုင်အရာဝတ္ထု