CSS border-top-color ပိုင်ဆိုင်မှု
ဥပမာ
အပေါ်ဘက်ဘောင်အတွက် အရောင်တစ်ခု သတ်မှတ်ပါ-
div {border-top-color: coral;}
အောက်တွင် နောက်ထပ် "စမ်းသုံးကြည့်ပါ" ဥပမာများ။
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
border-top-color
ပိုင်ဆိုင်မှုသည် ဒြပ်စင်တစ်ခု၏ အပေါ်ပိုင်းဘောင်၏ အရောင်ကို သတ်မှတ်ပေးသည် ။
မှတ်ချက်- ဘောင် ပုံစံ သို့မဟုတ်
ဘောင်-အပေါ်ပိုင်းပုံစံ ပိုင်ဆိုင်မှုကို ပိုင်ဆိုင်မှုရှေ့တွင် အမြဲတမ်းကြေညာပါ border-top-color
။ အရောင်မပြောင်းမီ ဒြပ်စင်တစ်ခုတွင် ဘောင်တစ်ခုရှိရမည်။
မူလတန်ဖိုး: | ဒြပ်စင်၏လက်ရှိအရောင် |
---|---|
အမွေဆက်ခံသည်- | မဟုတ်ဘူး |
သက်ဝင်လှုပ်ရှားနိုင်သော | ဟုတ်တယ် ကာတွန်း အကြောင်းဖတ်ပါ။ |
ဗားရှင်း- | CSS1 |
JavaScript syntax- | အရာဝတ္ထု .style.borderTopColor="blue" |
Browser ပံ့ပိုးမှု
ဇယားရှိ နံပါတ်များသည် ပိုင်ဆိုင်မှုကို အပြည့်အဝထောက်ခံသည့် ပထမဆုံးဘရောက်ဆာဗားရှင်းကို သတ်မှတ်ပေးသည်။
Property | |||||
---|---|---|---|---|---|
border-top-color | 1.0 | 4.0 | 1.0 | 1.0 | 3.5 |
CSS Syntax
border-top-color: color|transparent|initial|inherit;
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description | Play it |
---|---|---|
color | Specifies the color of the top border. Look at CSS Color Values for a complete list of possible color values. Default color is the current color of the element | |
transparent | Specifies that the border color should be transparent | |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |
နောက်ထပ် ဥပမာများ
ဥပမာ
HEX တန်ဖိုးဖြင့် ထိပ်ဘောင်အတွက် အရောင်တစ်ခု သတ်မှတ်ပါ-
div {border-top-color: #92a8d1;}
ဥပမာ
RGB တန်ဖိုးဖြင့် ထိပ်ဘောင်အတွက် အရောင်တစ်ခု သတ်မှတ်ပါ-
div {border-top-color: rgb(201, 76, 76);}
ဥပမာ
RGBA တန်ဖိုးဖြင့် ထိပ်ဘောင်အတွက် အရောင်တစ်ခု သတ်မှတ်ပါ-
div {border-top-color: rgba(201, 76, 76, 0.3);}
ဥပမာ
HSL တန်ဖိုးဖြင့် ထိပ်ဘောင်အတွက် အရောင်တစ်ခု သတ်မှတ်ပါ-
div {border-top-color: hsl(89, 43%, 51%);}
ဥပမာ
HSLA တန်ဖိုးဖြင့် ထိပ်ဘောင်အတွက် အရောင်တစ်ခု သတ်မှတ်ပါ-
div {border-top-color: hsla(89, 43%, 51%, 0.3);}
ဥပမာ
ပွင့်လင်းမြင်သာသော ထိပ်ဘောင်ကို သတ်မှတ်ပါ-
div {border-top-color: transparent;}
ဆက်စပ်စာမျက်နှာများ
CSS သင်ခန်းစာ- CSS Border
CSS ရည်ညွှန်းချက်- ဘောင်-အပေါ်ဆုံး ပိုင်ဆိုင်မှု
HTML DOM ရည်ညွှန်းချက်- borderTopColor ပိုင်ဆိုင်မှု