CSS ဖောင့်-မူကွဲ ပိုင်ဆိုင်မှု
ဥပမာ
စာပိုဒ်ကို စာလုံးသေးဖောင့်အဖြစ် သတ်မှတ်ပါ-
p.small
{
font-variant: small-caps;
}
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
စာလုံးသေးများဖောင့်တွင် စာလုံးအသေးအားလုံးကို စာလုံးအကြီးအဖြစ်သို့ ပြောင်းသည်။ သို့သော်၊ ပြောင်းလဲထားသော စာလုံးကြီးများသည် စာသားရှိ မူရင်းစာလုံးကြီးများထက် သေးငယ်သော ဖောင့်အရွယ်အစားဖြင့် ပေါ်လာပါသည်။
စာလုံး font-variant
တစ်လုံးကို စာလုံးသေးသေးဖောင့်ဖြင့် ပြသသင့်သည်ဖြစ်စေ ပိုင်ဆိုင်မှုသည် သတ်မှတ်ပေးသည်။
မူလတန်ဖိုး: | ပုံမှန် |
---|---|
အမွေဆက်ခံသည်- | ဟုတ်တယ် |
သက်ဝင်လှုပ်ရှားနိုင်သော | မဟုတ်ဘူး ကာတွန်း အကြောင်းဖတ်ပါ။ |
ဗားရှင်း- | CSS1 |
JavaScript syntax- | အရာဝတ္ထု .style.fontVariant="small-caps" |
Browser ပံ့ပိုးမှု
ဇယားရှိ နံပါတ်များသည် ပိုင်ဆိုင်မှုကို အပြည့်အဝထောက်ခံသည့် ပထမဆုံးဘရောက်ဆာဗားရှင်းကို သတ်မှတ်ပေးသည်။
Property | |||||
---|---|---|---|---|---|
font-variant | 1.0 | 4.0 | 1.0 | 1.0 | 3.5 |
CSS Syntax
font-variant: normal|small-caps|initial|inherit;
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description | Play it |
---|---|---|
normal | The browser displays a normal font. This is default | |
small-caps | The browser displays a small-caps font | |
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 ရည်ညွှန်းချက်- fontVariant ပိုင်ဆိုင်မှု