Style borderBottomStyle Property
ဥပမာ
<div> ဒြပ်စင်သို့ "အစိုင်အခဲ" အောက်ခြေဘောင်ကို ထည့်ပါ-
document.getElementById("myDiv").style.borderBottomStyle = "solid";
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
borderBottomStyle ပိုင်ဆိုင်မှုသည် ဒြပ်စင်တစ်ခု၏အောက်ခြေဘောင်၏စတိုင်ကို သတ်မှတ်ပေးသည် သို့မဟုတ် ပြန်ပေးသည်။
Browser ပံ့ပိုးမှု
ဇယားရှိ နံပါတ်များသည် ပိုင်ဆိုင်မှုကို အပြည့်အဝထောက်ခံသည့် ပထမဆုံးဘရောက်ဆာဗားရှင်းကို သတ်မှတ်ပေးသည်။
Property | |||||
---|---|---|---|---|---|
borderBottomStyle | 1.0 | 5.5 | 1.0 | 1.0 | 9.2 |
မှတ်ချက်- "hidden" တန်ဖိုးကို IE7 နှင့် အစောပိုင်းဗားရှင်းများတွင် ပံ့ပိုးမထားပါ။ IE9 နှင့် နောက်ပိုင်းတွင် "hidden" ကို ပံ့ပိုးပေးသည်။
အထားအသို
borderBottomStyle ပိုင်ဆိုင်မှုကို ပြန်ပေးပါ။
object.style.borderBottomStyle
borderBottomStyle ပိုင်ဆိုင်မှုကို သတ်မှတ်ပါ-
object.style.borderBottomStyle = value
အိမ်ခြံမြေတန်ဖိုးများ
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> ဒြပ်စင်တစ်ခု၏အောက်ခြေဘောင်၏ပုံစံကို "dotted" သို့ပြောင်းပါ-
document.getElementById("myDiv").style.borderBottomStyle = "dotted";
ဥပမာ
<div> ဒြပ်စင်တစ်ခု၏ အောက်ခြေဘောင်စတိုင်ကို ပြန်ပေးပါ။
alert(document.getElementById("myDiv").style.borderBottomStyle);
ဥပမာ
မတူညီသောတန်ဖိုးများအားလုံးကို သရုပ်ပြခြင်း-
var listValue = selectTag.options[selectTag.selectedIndex].text;
document.getElementById("myDiv").style.borderBottomStyle = listValue;
ဆက်စပ်စာမျက်နှာများ
CSS သင်ခန်းစာ- CSS Border
CSS ရည်ညွှန်းချက်- border-bottom-style property
HTML DOM ရည်ညွှန်းချက်- နယ်စပ်ပိုင်ဆိုင်မှု