ပုံစံ သည် verticalAlign Property ဖြစ်သည်။
ဥပမာ
ဇယားတစ်ခုရှိ စာသားအချို့၏ ဒေါင်လိုက်ချိန်ညှိခြင်းကို "အောက်ခြေ" သို့ သတ်မှတ်ပါ-
document.getElementById("myTd").style.verticalAlign = "bottom";
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
verticalAlign ပိုင်ဆိုင်မှုသည် ဒြပ်စင်တစ်ခုရှိ အကြောင်းအရာ၏ ဒေါင်လိုက်ချိန်ညှိမှုကို သတ်မှတ် သို့မဟုတ် ပြန်ပေးသည်။
Browser ပံ့ပိုးမှု
Property | |||||
---|---|---|---|---|---|
verticalAlign | Yes | Yes | Yes | Yes | Yes |
အထားအသို
verticalAlign ကို ပြန်ပို့ပါ-
object.style.verticalAlign
verticalAlign ကို သတ်မှတ်ပါ-
object.style.verticalAlign = value
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description |
---|---|
length | Raises or lower an element by the specified length. Negative values are allowed |
% | Raises or lower an element in a percent of the "line-height" property. Negative values are allowed |
baseline | Align the baseline of the element with the baseline of the parent element. This is default |
sub | Aligns the element as it was subscript |
super | Aligns the element as it was superscript |
top | The top of the element is aligned with the top of the tallest element on the line |
text-top | The top of the element is aligned with the top of the parent element's font |
middle | The element is placed in the middle of the parent element |
bottom | The bottom of the element is aligned with the lowest element on the line |
text-bottom | The bottom of the element is aligned with the bottom of the parent element's font |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
နည်းပညာဆိုင်ရာအသေးစိတ်
မူလတန်ဖိုး: | အခြေခံစာရင်း |
---|---|
ပြန်ပို့တန်ဖိုး- | ဒြပ်စင်တစ်ခုရှိ အကြောင်းအရာ၏ ဒေါင်လိုက်ချိန်ညှိမှုကို ကိုယ်စားပြုသည့် စာကြောင်းတစ်ခု |
CSS ဗားရှင်း | CSS1 |
နောက်ထပ် ဥပမာများ
ဥပမာ
<td> ဒြပ်စင်တစ်ခု၏ ဒေါင်လိုက်ချိန်ညှိမှုကို ပြန်ပေးပါ။
alert(document.getElementById("myTd").style.verticalAlign);
ဆက်စပ်စာမျက်နှာများ
CSS သင်ခန်းစာ- CSS စာသား
CSS ရည်ညွှန်းချက်- ဒေါင်လိုက် ညှိခြင်း ပိုင်ဆိုင်မှု
❮ စတိုင်အရာဝတ္ထု