CSS သည် ဒေါင်လိုက်-ချိန်ညှိခြင်း ပိုင်ဆိုင်မှု
ဥပမာ
ပုံတစ်ပုံကို ဒေါင်လိုက် ညှိရန်-
img.a {
vertical-align: baseline;
}
img.b {
vertical-align: text-top;
}
img.c {
vertical-align: text-bottom;
}
img.d {
vertical-align: sub;
}
img.e {
vertical-align: super;
}
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
ပိုင်ဆိုင်မှု သည် vertical-align
ဒြပ်စင်တစ်ခု၏ ဒေါင်လိုက်ချိန်ညှိမှုကို သတ်မှတ်ပေးသည်။
မူလတန်ဖိုး: | အခြေခံစာရင်း |
---|---|
အမွေဆက်ခံသည်- | မဟုတ်ဘူး |
သက်ဝင်လှုပ်ရှားနိုင်သော | ဟုတ်တယ် ကာတွန်း အကြောင်းဖတ်ပါ။ |
ဗားရှင်း- | CSS1 |
JavaScript syntax- | အရာဝတ္ထု .style.verticalAlign="top" |
Browser ပံ့ပိုးမှု
ဇယားရှိ နံပါတ်များသည် ပိုင်ဆိုင်မှုကို အပြည့်အဝထောက်ခံသည့် ပထမဆုံးဘရောက်ဆာဗားရှင်းကို သတ်မှတ်ပေးသည်။
Property | |||||
---|---|---|---|---|---|
vertical-align | 1.0 | 4.0 | 1.0 | 1.0 | 4.0 |
CSS Syntax
vertical-align: baseline|length|sub|super|top|text-top|middle|bottom|text-bottom|initial|inherit;
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description | Play it |
---|---|---|
baseline | The element is aligned with the baseline of the parent. This is default | |
length | Raises or lower an element by the specified length. Negative values are allowed. Read about length units | |
% | Raises or lower an element by a percent of the "line-height" property. Negative values are allowed | |
sub | The element is aligned with the subscript baseline of the parent | |
super | The element is aligned with the superscript baseline of the parent | |
top | The element is aligned with the top of the tallest element on the line | |
text-top | 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 element is aligned with the lowest element on the line | |
text-bottom | 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 သင်ခန်းစာ- CSS စာသား
HTML DOM ရည်ညွှန်းချက်- verticalAlign ပိုင်ဆိုင်မှု