ပုံစံ ဘောင်TopWidth Property
ဥပမာ
<div> ဒြပ်စင်တစ်ခု၏ အပေါ်ဘက်ဘောင်၏ အကျယ်ကို 10px သို့ ပြောင်းပါ-
document.getElementById("myDiv").style.borderTopWidth = "10px";
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
borderTopWidth ပိုင်ဆိုင်မှုသည် ဒြပ်စင်တစ်ခု၏ အပေါ်ပိုင်းဘောင်၏ အကျယ်ကို သတ်မှတ် သို့မဟုတ် ပြန်ပေးသည်။
Browser ပံ့ပိုးမှု
Property | |||||
---|---|---|---|---|---|
borderTopWidth | Yes | Yes | Yes | Yes | Yes |
အထားအသို
borderTopWidth ပိုင်ဆိုင်မှုကို ပြန်ပေးပါ။
object.style.borderTopWidth
borderTopWidth ကို သတ်မှတ်ပါ-
object.style.borderTopWidth = "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 |
inherit | The width of the top border is inherited from the parent element |
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.borderTopWidth = "thin";
ဥပမာ
<div> ဒြပ်စင်တစ်ခု၏ အပေါ်ဘက်ဘောင်၏ အကျယ်ကို ပြန်ပေးပါ။
alert(document.getElementById("myDiv").style.borderTopWidth);
ဆက်စပ်စာမျက်နှာများ
CSS သင်ခန်းစာ- CSS Border
CSS ရည်ညွှန်းချက်- နယ်ခြား-အပေါ်-အကျယ် ပိုင်ဆိုင်မှု
HTML DOM ရည်ညွှန်းချက်- နယ်စပ်ပိုင်ဆိုင်မှု
❮ စတိုင်အရာဝတ္ထု