ပုံစံ borderImageSource Property
ဥပမာ
div ဒြပ်စင်တစ်ဝိုက်ရှိ ဘောင်အဖြစ် ပုံတစ်ပုံကို သုံးပါ-
document.getElementById("myDIV").style.borderImageSource = "url(border.png)";
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
borderImageSource ပိုင်ဆိုင်မှုသည် နယ်ခြားပုံစံဂုဏ်သတ္တိများဖြင့် ပေးထားသော နယ်ခြားစတိုင်များအစား အသုံးပြုရန် ပုံကို သတ်မှတ် သို့မဟုတ် ပြန်ပေးသည်။
အကြံပြုချက်- တန်ဖိုးသည် "မရှိပါ" ဆိုလျှင် သို့မဟုတ် ပုံအား မပြသနိုင်ပါက၊ ဘောင်စတိုင်များကို အသုံးပြုပါမည်။
Browser ပံ့ပိုးမှု
ဇယားရှိ နံပါတ်များသည် ပိုင်ဆိုင်မှုကို အပြည့်အဝထောက်ခံသည့် ပထမဆုံးဘရောက်ဆာဗားရှင်းကို သတ်မှတ်ပေးသည်။
Property | |||||
---|---|---|---|---|---|
borderImageSource | Yes | 11.0 | Yes | 6.0 | 15.0 11.0 O |
အဲဒီအစား borderImage property ကို ကြည့်ပါ ။
အထားအသို
borderImageSource ပိုင်ဆိုင်မှုကို ပြန်ပေးပါ။
object.style.borderImageSource
borderImageSource ပိုင်ဆိုင်မှုကို သတ်မှတ်ပါ-
object.style.borderImageSource = "none|image|initial|inherit"
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description |
---|---|
none | No image will be used |
image | The path to the image to be used as a border |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
နည်းပညာဆိုင်ရာအသေးစိတ်
မူလတန်ဖိုး: | မရှိ |
---|---|
ပြန်ပို့တန်ဖိုး- | ဒြပ်စင်တစ်ခု၏ နယ်နိမိတ်ပုံ-ပုံ-ရင်းမြစ် ပိုင်ဆိုင်မှုကို ကိုယ်စားပြုသည့် စာတန်း |
CSS ဗားရှင်း | CSS3 |
ဆက်စပ်စာမျက်နှာများ
CSS ရည်ညွှန်းချက်- နယ်စပ်-ပုံ-ရင်းမြစ် ပိုင်ဆိုင်မှု