ပုံစံ ဘောင်ဝဲဝဲ အကျယ် ပိုင်ဆိုင်မှု
ဥပမာ
<div> ဒြပ်စင်တစ်ခု၏ ဘယ်ဘက်ဘောင်၏ အကျယ်ကို 10px သို့ ပြောင်းပါ-
document.getElementById("myDiv").style.borderLeftWidth = "10px";
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
borderLeftWidth ပိုင်ဆိုင်မှုသည် ဒြပ်စင်တစ်ခု၏ ဘယ်ဘက်ဘောင်၏ အကျယ်ကို သတ်မှတ် သို့မဟုတ် ပြန်ပေးသည်။
Browser ပံ့ပိုးမှု
Property | |||||
---|---|---|---|---|---|
borderLeftWidth | Yes | Yes | Yes | Yes | Yes |
အထားအသို
ဘောင်ဘယ်ဘက်အနံကို ပြန်ပေးပါ-
object.style.borderLeftWidth
borderLeftWidth ကို သတ်မှတ်ပါ-
object.style.borderLeftWidth = "thin|medium|thick|length|initial|inherit"
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description |
---|---|
thin | Defines a thin border |
medium | Defines a medium border. This is default |
thick | Defines a thick border |
length | The width of the border in length units |
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.borderLeftWidth = "thin";
ဥပမာ
<div> ဒြပ်စင်တစ်ခု၏ ဘယ်ဘက်ဘောင်၏ အကျယ်ကို ပြန်ပေးပါ။
alert(document.getElementById("myDiv").style.borderLeftWidth);
ဆက်စပ်စာမျက်နှာများ
CSS သင်ခန်းစာ- CSS Border
CSS ရည်ညွှန်းချက်- ဘောင်-ဘယ်-အနံ ပိုင်ဆိုင်မှု
HTML DOM ရည်ညွှန်းချက်- နယ်စပ်ပိုင်ဆိုင်မှု