ပုံစံ borderTopStyle Property
ဥပမာ
<div> ဒြပ်စင်သို့ "အစိုင်အခဲ" ထိပ်ဘောင်ကို ထည့်ပါ-
document.getElementById("myDiv").style.borderTopStyle = "solid";
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
borderTopStyle ပိုင်ဆိုင်မှုသည် ဒြပ်စင်တစ်ခု၏ ထိပ်တန်းဘောင်၏စတိုင်ကို သတ်မှတ် သို့မဟုတ် ပြန်ပေးသည်။
Browser ပံ့ပိုးမှု
Property | |||||
---|---|---|---|---|---|
borderTopStyle | Yes | Yes | Yes | Yes | Yes |
အထားအသို
borderTopStyle ပိုင်ဆိုင်မှုကို ပြန်ပေးပါ။
object.style.borderTopStyle
borderTopStyle ပိုင်ဆိုင်မှုကို သတ်မှတ်ပါ-
object.style.borderTopStyle = value
|initial|inherit
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description |
---|---|
none | Defines no border. This is default |
hidden | Same as "none", except in border conflict resolution for table elements |
dotted | Defines a dotted border |
dashed | Defines a dashed border |
solid | Defines a solid border |
double | Defines two borders. The width of the two borders are the same as the border-width value |
groove | Defines a 3D grooved border. The effect depends on the border-color value |
ridge | Defines a 3D ridged border. The effect depends on the border-color value |
inset | Defines a 3D inset border. The effect depends on the border-color value |
outset | Defines a 3D outset border. The effect depends on the border-color value |
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.borderTopStyle = "dotted";
ဥပမာ
<div> ဒြပ်စင်တစ်ခု၏ ထိပ်ဘောင်စတိုင်ကို ပြန်ပေးပါ။
alert(document.getElementById("myDiv").style.borderTopStyle);
ဥပမာ
မတူညီသောတန်ဖိုးများအားလုံးကို သရုပ်ပြခြင်း-
var listValue = selectTag.options[selectTag.selectedIndex].text;
document.getElementById("myDiv").style.borderTopStyle = listValue;
ဆက်စပ်စာမျက်နှာများ
CSS သင်ခန်းစာ- CSS Border
CSS ရည်ညွှန်းချက်- နယ်စပ်-ထိပ်-စတိုင် ပိုင်ဆိုင်မှု
HTML DOM ရည်ညွှန်းချက်- နယ်စပ်ပိုင်ဆိုင်မှု
❮ စတိုင်အရာဝတ္ထု