ပုံစံ borderImageSlice Property
ဥပမာ
ပုံ-ဘောင်၏ အတွင်းပိုင်း အော့ဖ်ဆက်များကို သတ်မှတ်ပါ-
document.getElementById("myDIV").style.borderImageSlice = "50% 10%";
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
borderImageSlice ပိုင်ဆိုင်မှုသည် image-border ၏ အတွင်းပိုင်း အော့ဖ်ဆက်များကို သတ်မှတ်သည်။
Browser ပံ့ပိုးမှု
ဇယားရှိ နံပါတ်များသည် ပိုင်ဆိုင်မှုကို အပြည့်အဝထောက်ခံသည့် ပထမဆုံးဘရောက်ဆာဗားရှင်းကို သတ်မှတ်ပေးသည်။
Property | |||||
---|---|---|---|---|---|
borderImageSlice | Yes | 11.0 | Yes | 6.0 | 15.0 11.0 O |
အဲဒီအစား borderImage property ကို ကြည့်ပါ ။
အထားအသို
borderImageSlice ပိုင်ဆိုင်မှုကို ပြန်ပေးပါ။
object.style.borderImageSlice
borderImageSlice ပိုင်ဆိုင်မှုကို သတ်မှတ်ပါ-
object.style.borderImageSlice = "number|%|fill|initial|inherit"
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description |
---|---|
number | Numbers represent pixels in the image (if the image is a raster image) or vector coordinates (if the image is a vector image) |
% | Percentages are relative to the size of the image: the width of the image for the horizontal offsets, the height for vertical offsets. Default value is 100% |
fill | Causes the middle part of the border-image to be preserved |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
နည်းပညာဆိုင်ရာအသေးစိတ်
မူလတန်ဖိုး: | 100% |
---|---|
ပြန်ပို့တန်ဖိုး- | ဒြပ်စင်တစ်ခု၏ ဘောင်-ပုံ-အချပ် ပိုင်ဆိုင်မှုကို ကိုယ်စားပြုသော စာတန်း |
CSS ဗားရှင်း | CSS3 |
ဆက်စပ်စာမျက်နှာများ
CSS ရည်ညွှန်းချက်- border-image-slice ပိုင်ဆိုင်မှု