ပုံစံ နောက်ခံ Property ကို ပြန်လုပ်ပါ။
ဥပမာ
နောက်ခံပုံတစ်ပုံကို ထပ်တလဲလဲမလုပ်ရန် သတ်မှတ်ပါ-
document.body.style.backgroundRepeat = "repeat-y";
အောက်တွင် နောက်ထပ် "စမ်းသုံးကြည့်ပါ" ဥပမာများ။
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
backgroundRepeat ပိုင်ဆိုင်မှုသည် နောက်ခံပုံတစ်ပုံကို ထပ်ခါတလဲလဲလုပ်နည်း (အကွက်) ကို သတ်မှတ် သို့မဟုတ် ပြန်ပေးသည်။
Browser ပံ့ပိုးမှု
ဇယားရှိ နံပါတ်များသည် ပိုင်ဆိုင်မှုကို အပြည့်အဝထောက်ခံသည့် ပထမဆုံးဘရောက်ဆာဗားရှင်းကို သတ်မှတ်ပေးသည်။
Property | |||||
---|---|---|---|---|---|
backgroundRepeat | 1.0 | 4.0 | 1.0 | 1.0 | 3.5 |
အထားအသို
နောက်ခံကို ပြန်လုပ်ပါ ပိုင်ဆိုင်မှုကို ပြန်ပေးပါ။
object.style.backgroundRepeat
နောက်ခံအထပ်ထပ်ပိုင်ဆိုင်မှုကို သတ်မှတ်ပါ-
object.style.backgroundRepeat = "repeat|repeat-x|repeat-y|no-repeat|initial|inherit"
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description |
---|---|
repeat | The background image is repeated both vertically and horizontally. This is default |
repeat-x | The background image is only repeated horizontally |
repeat-y | The background image is only repeated vertically |
no-repeat | The background-image is not repeated |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
နည်းပညာဆိုင်ရာအသေးစိတ်
မူလတန်ဖိုး: | ထပ်လုပ်ပါ။ |
---|---|
ပြန်ပို့တန်ဖိုး- | နောက်ခံ-ပုံကို ထပ်ခါတလဲလဲ ကိုယ်စားပြုသော စာတန်း |
CSS ဗားရှင်း | CSS1 |
နောက်ထပ် ဥပမာများ
ဥပမာ
သတ်မှတ်ထားသော DIV ဒြပ်စင်တစ်ခု၏ နောက်ခံအထပ်ထပ် ပိုင်ဆိုင်မှုကို ပြောင်းပါ-
document.getElementById("myDIV").style.backgroundRepeat = "repeat-x";
ဥပမာ
အလျားလိုက် သို့မဟုတ် ဒေါင်လိုက်ပြန်လုပ်ရန် နောက်ခံ-ပုံကို သတ်မှတ်ပါ-
function repeatVer()
{
document.body.style.backgroundRepeat = "repeat-y";
}
function repeatHor() {
document.body.style.backgroundRepeat = "repeat-x";
}
ဥပမာ
စာရွက်စာတမ်းတစ်ခု၏ နောက်ခံ-ထပ်ကျော့တန်ဖိုးကို ပြန်ပေးပါ။
alert(document.body.style.backgroundRepeat);
ဆက်စပ်စာမျက်နှာများ
CSS သင်ခန်းစာ- CSS နောက်ခံ
CSS ရည်ညွှန်းချက်- နောက်ခံအနေအထား ပိုင်ဆိုင်မှု
CSS ရည်ညွှန်းချက်- နောက်ခံ-အထပ်ထပ် ပိုင်ဆိုင်မှု
HTML DOM ရည်ညွှန်းချက်- နောက်ခံပိုင်ဆိုင်မှု