CSS ဖောင့်-အလေးချိန် ပိုင်ဆိုင်မှု
ဥပမာ
စာပိုဒ်သုံးခုအတွက် မတူညီသောဖောင့်အလေးချိန်ကို သတ်မှတ်ပါ-
p.normal {
font-weight: normal;
}
p.thick {
font-weight: bold;
}
p.thicker {
font-weight: 900;
}
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
စာသား font-weight
တွင် မည်မျှ အထူ သို့မဟုတ် ပါးလွှာသော စာလုံးများကို ပြသသင့်သည်ကို ပိုင်ဆိုင်မှုက သတ်မှတ်ပေးသည်။
မူလတန်ဖိုး: | ပုံမှန် |
---|---|
အမွေဆက်ခံသည်- | ဟုတ်တယ် |
သက်ဝင်လှုပ်ရှားနိုင်သော | ဟုတ်တယ် ကာတွန်း အကြောင်းဖတ်ပါ။ |
ဗားရှင်း- | CSS1 |
JavaScript syntax- | အရာဝတ္ထု .style.fontWeight="bold" |
Browser ပံ့ပိုးမှု
ဇယားရှိ နံပါတ်များသည် ပိုင်ဆိုင်မှုကို အပြည့်အဝထောက်ခံသည့် ပထမဆုံးဘရောက်ဆာဗားရှင်းကို သတ်မှတ်ပေးသည်။
Property | |||||
---|---|---|---|---|---|
font-weight | 2.0 | 4.0 | 1.0 | 1.3 | 3.5 |
CSS Syntax
font-weight: normal|bold|bolder|lighter|number|initial|inherit;
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description | Play it |
---|---|---|
normal | Defines normal characters. This is default | |
bold | Defines thick characters | |
bolder | Defines thicker characters | |
lighter | Defines lighter characters | |
100 200 300 400 500 600 700 800 900 |
Defines from thin to thick characters. 400 is the same as normal, and 700 is the same as bold | |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |
ဆက်စပ်စာမျက်နှာများ
CSS သင်ခန်းစာ- CSS ဖောင့်
CSS ရည်ညွှန်းချက်- ဖောင့်ပိုင်ဆိုင်မှု
HTML DOM ရည်ညွှန်းချက်- fontWeight ပိုင်ဆိုင်မှု