CSS ဘောင် -အပေါ်ဆုံး ပိုင်ဆိုင်မှု
ဥပမာ
မတူညီသောဒြပ်စင်များအတွက် ထိပ်ဘောင်ပုံစံကို သတ်မှတ်ပါ-
h1 {
border-top: 5px solid red;
}
h2 {
border-top: 4px dotted blue;
}
div {
border-top: double;
}
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
အတိုကောက် ပိုင်ဆိုင်မှု သည် border-top
ကြေငြာချက်တစ်ခုတွင် ထိပ်တန်းနယ်စပ်ဂုဏ်သတ္တိများအားလုံးကို သတ်မှတ်ပေးသည်။
သတ်မှတ်နိုင်သော ဂုဏ်သတ္တိများသည် အောက်ပါအစီအစဉ်အတိုင်း ဖြစ်ရမည်-
- နယ်စပ်-အပေါ်-အကျယ်
- ဘောင်ထိပ်-စတိုင် (လိုအပ်သည်)
- ဘောင်-ထိပ်-ရောင်
နယ်ခြား-အပေါ်-ရောင်ကို ချန်လှပ်ထားပါက၊ ထည့်သွင်းထားသောအရောင်သည် စာသား၏အရောင်ဖြစ်လိမ့်မည်။
မူလတန်ဖိုး: | အလယ်အလတ်မရှိသော အရောင် |
---|---|
အမွေဆက်ခံသည်- | မဟုတ်ဘူး |
သက်ဝင်လှုပ်ရှားနိုင်သော | ဟုတ်ကဲ့၊ တစ်ဦးချင်းဂုဏ်သတ္တိများကိုကြည့်ပါ ။ ကာတွန်း အကြောင်းဖတ်ပါ။ |
ဗားရှင်း- | CSS1 |
JavaScript syntax- | အရာဝတ္ထု .style.borderTop="3px အပြာနုရောင်" |
Browser ပံ့ပိုးမှု
ဇယားရှိ နံပါတ်များသည် ပိုင်ဆိုင်မှုကို အပြည့်အဝထောက်ခံသည့် ပထမဆုံးဘရောက်ဆာဗားရှင်းကို သတ်မှတ်ပေးသည်။
Property | |||||
---|---|---|---|---|---|
border-top | 1.0 | 4.0 | 1.0 | 1.0 | 3.5 |
CSS Syntax
border-top: border-width border-style border-color|initial|inherit;
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description |
---|---|
border-top-width | Required. Specifies the width of the top border. Default value is "medium" |
border-top-style | Required. Specifies the style of the top border. Default value is "none" |
border-top-color | Optional. Specifies the color of the top border. Default value is the color of the text |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
ဆက်စပ်စာမျက်နှာများ
CSS သင်ခန်းစာ- CSS Border
HTML DOM ရည်ညွှန်းချက်- borderTop ပိုင်ဆိုင်မှု