CSS Font Property
CSS Font Property
ကုဒ်ကို အတိုချုံ့ရန်၊ ပိုင်ဆိုင်မှုတစ်ခုတွင် တစ်ဦးချင်း ဖောင့်ဂုဏ်သတ္တိအားလုံးကို သတ်မှတ်နိုင်သည်။
ပိုင်ဆိုင်မှုသည် အောက်ပါ font
တို့အတွက် အတိုကောက်ပိုင်ဆိုင်မှုတစ်ခုဖြစ်သည်။
font-style
font-variant
font-weight
font-size/line-height
font-family
မှတ်ချက်- နှင့် font-size
တန်ဖိုးများ font-family
လိုအပ်ပါသည်။ အခြားတန်ဖိုးများထဲမှ တစ်ခုပျောက်ဆုံးပါက၊ ၎င်းတို့၏ မူရင်းတန်ဖိုးကို အသုံးပြုပါသည်။
ဥပမာ
font
ကြေငြာချက်တစ်ခုတွင် ဖောင့်ဂုဏ်သတ္တိများစွာကို သတ်မှတ်ရန် အသုံးပြု ပါ-
p.a
{
font: 20px Arial, sans-serif;
}
p.b
{
font: italic small-caps bold 12px/30px Georgia, serif;
}
CSS Font Properties အားလုံး
Property | Description |
---|---|
font | Sets all the font properties in one declaration |
font-family | Specifies the font family for text |
font-size | Specifies the font size of text |
font-style | Specifies the font style for text |
font-variant | Specifies whether or not a text should be displayed in a small-caps font |
font-weight | Specifies the weight of a font |