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