ပုံစံ နောက်ခံ မူရင်း ပိုင်ဆိုင်မှု
ဥပမာ
အကြောင်းအရာအကွက်နှင့် ဆက်စပ်နေသည့် နောက်ခံပုံအား နေရာချထားပါ-
document.getElementById("myDIV").style.backgroundOrigin = "content-box";
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
backgroundOrigin ပိုင်ဆိုင်မှုသည် သတ်မှတ်ပေးသည် သို့မဟုတ် ပြန်ပေးသည့်အရာသည် နောက်ခံအနေအထားပိုင်ဆိုင်မှုနှင့် ဆက်စပ်နေသည်။
မှတ်ချက်- နောက်ခံပုံအတွက် နောက်ခံ- ပူးတွဲပါပစ္စည်းပိုင်ဆိုင်မှုသည် "ပုံသေဖြစ်နေလျှင်" ဤပိုင်ဆိုင်မှုသည် အကျိုးသက်ရောက်မှုမရှိပါ။
Browser ပံ့ပိုးမှု
ဇယားရှိ နံပါတ်များသည် ပိုင်ဆိုင်မှုကို အပြည့်အဝထောက်ခံသည့် ပထမဆုံးဘရောက်ဆာဗားရှင်းကို သတ်မှတ်ပေးသည်။
Property | |||||
---|---|---|---|---|---|
backgroundOrigin | 4.0 | 9.0 | 4.0 | 3.0 | 10.5 |
အထားအသို
နောက်ခံမူလပိုင်ဆိုင်မှုကို ပြန်ပေးပါ-
object.style.backgroundOrigin
နောက်ခံမူလပိုင်ဆိုင်မှုကို သတ်မှတ်ပါ-
object.style.backgroundOrigin = "padding-box|border-box|content-box|initial|inherit"
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description |
---|---|
padding-box | Default value. The background image is positioned relative to the padding box |
border-box | The background image is positioned relative to the border box |
content-box | The background image is positioned relative to the content box |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
နည်းပညာဆိုင်ရာအသေးစိတ်
မူလတန်ဖိုး: | padding-box |
---|---|
ပြန်ပို့တန်ဖိုး- | ဒြပ်စင်တစ်ခု၏ နောက်ခံ-ဇာစ်မြစ်ကို ကိုယ်စားပြုသည့် စာကြောင်းတစ်ခု |
CSS ဗားရှင်း | CSS3 |
ဆက်စပ်စာမျက်နှာများ
CSS ရည်ညွှန်းချက်- နောက်ခံ-ဇာစ်မြစ် ပိုင်ဆိုင်မှု