ပုံစံ လိုင်းအမြင့် ပိုင်ဆိုင်မှု
ဥပမာ
<div> ဒြပ်စင်အတွက် မျဉ်းအမြင့်ကို သတ်မှတ်ပါ-
document.getElementById("myDiv").style.lineHeight = "3";
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
lineHeight ပိုင်ဆိုင်မှုသည် စာသားတစ်ခုရှိ လိုင်းများကြားအကွာအဝေးကို သတ်မှတ်ပေးသည် သို့မဟုတ် ပြန်ပေးသည်။
Browser ပံ့ပိုးမှု
Property | |||||
---|---|---|---|---|---|
lineHeight | Yes | Yes | Yes | Yes | Yes |
အထားအသို
လိုင်းအမြင့်ပိုင်ဆိုင်မှုကို ပြန်ပေးပါ။
object.style.lineHeight
lineHeight ကို သတ်မှတ်ပါ-
object.style.lineHeight = "normal|number|length|%|initial|inherit"
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description |
---|---|
normal | Normal line height is used. This is default |
number | A number that will be multiplied with the current font size to set the line height |
length | Defines the line height in length units |
% | Defines the line height in % of the current font size |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
နည်းပညာဆိုင်ရာအသေးစိတ်
မူလတန်ဖိုး: | ပုံမှန် |
---|---|
ပြန်ပို့တန်ဖိုး- | စာသားရှိ စာကြောင်းများကြား အကွာအဝေးကို ကိုယ်စားပြုသော စာတန်း |
CSS ဗားရှင်း | CSS1 |
နောက်ထပ် ဥပမာများ
ဥပမာ
<div> ဒြပ်စင်တစ်ခု၏ မျဉ်းအမြင့်ကို ပြန်ပေးပါ။
alert(document.getElementById("myDiv").style.lineHeight);
ဆက်စပ်စာမျက်နှာများ
CSS သင်ခန်းစာ- CSS စာသား
CSS ရည်ညွှန်းချက်- လိုင်းအမြင့် ပိုင်ဆိုင်မှု
❮ စတိုင်အရာဝတ္ထု