ပုံစံ fontSizeAdjust Property
ဥပမာ
ဖောင့်အရွယ်အစားကို ချိန်ညှိပါ
document.getElementById("demo").style.fontSizeAdjust = "0.58";
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
fontSizeAdjust ပိုင်ဆိုင်မှုသည် စာသားတစ်ခု၏ ဖောင့်ပုံစံတန်ဖိုးကို သတ်မှတ်ပေးသည် သို့မဟုတ် ပြန်ပေးသည်။
ဖောင့်အားလုံးတွင် စာလုံး အသေး "x" နှင့် စာလုံးကြီး "X" အကြား အရွယ်အစား-ကွာခြားချက်ဖြစ် သည့် ရှုထောင့်တန်ဖိုး တစ်ခုရှိသည်။
ပထမရွေးချယ်မှုဖောင့်မရရှိနိုင်သောအခါ fontSizeAdjust ပိုင်ဆိုင်မှုသည် သင့်အား ဖောင့်အရွယ်အစားကို ပိုမိုကောင်းမွန်စွာ ထိန်းချုပ်နိုင်စေပါသည်။ ဖောင့်တစ်ခုမရနိုင်သောအခါ၊ ဘရောက်ဆာသည် ဒုတိယသတ်မှတ်ထားသောဖောင့်ကို အသုံးပြုသည်။ ၎င်းသည် ဖောင့်အရွယ်အစားအတွက် ကြီးမားသောပြောင်းလဲမှု ဖြစ်စေနိုင်သည်။ ယင်းကိုကာကွယ်ရန်၊ ဤပိုင်ဆိုင်မှုကိုအသုံးပြုပါ။
ဘရောင်ဇာသည် ပထမရွေးချယ်မှု-ဖောင့်အတွက် ရှုထောင့်တန်ဖိုးကို သိသောအခါ၊ ဘရောက်ဆာသည် ဒုတိယရွေးချယ်မှုဖောင့်ဖြင့် စာသားကိုပြသသည့်အခါ မည်သည့်ဖောင့်အရွယ်အစားကို အသုံးပြုရမည်ကို သိရှိနိုင်သည်။
Browser ပံ့ပိုးမှု
Property | |||||
---|---|---|---|---|---|
fontSizeAdjust | Not supported | Not supported | Yes | Not supported | Not supported |
အထားအသို
fontSizeAdjust ပိုင်ဆိုင်မှုကို ပြန်ပေးပါ။
object.style.fontSizeAdjust
fontSizeAdjust ပိုင်ဆိုင်မှုကို သတ်မှတ်ပါ-
object.style.fontSizeAdjust = "none|number|initial|inherit"
Value | Description |
---|---|
none | Default value. No font size adjustment |
number | Preserve the first-choice font's x-height, and calculate the aspect value ratio for the font. The formula that is used: font-size of first-choice font*(aspect value of first-choice font/aspect value of available font)=font-size to use on available font Example: If 14px Verdana (aspect value of 0.58) was unavailable, but the available font, Times New Roman, has an aspect value of 0.46, the adjusted font-size to use would be 14*(0.58/0.46) = 17.65px. |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
နည်းပညာဆိုင်ရာအသေးစိတ်
မူလတန်ဖိုး: | မရှိ |
---|---|
ပြန်ပို့တန်ဖိုး- | စာသားတစ်ခု၏ ဖောင့်ရှုထောင့်တန်ဖိုးကို ကိုယ်စားပြုသော စာကြောင်းတစ်ခု |
CSS ဗားရှင်း | CSS3 |
ဆက်စပ်စာမျက်နှာများ
CSS သင်ခန်းစာ- CSS ဖောင့်
CSS ရည်ညွှန်းချက်- ဖောင့်အရွယ်အစား ပိုင်ဆိုင်မှု
HTML DOM ရည်ညွှန်းချက်- ဖောင့်ပိုင်ဆိုင်မှု
❮ စတိုင်အရာဝတ္ထု