ပုံစံ textAlignLast Property
ဥပမာ
စာပိုဒ်တစ်ခု၏ နောက်ဆုံးစာကြောင်းကို ညာဘက်သို့ ညှိပါ-
document.getElementById("myDIV").style.textAlignLast = "right";
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
textAlignLast ပိုင်ဆိုင်မှုသည် စာသားတစ်ခု၏နောက်ဆုံးစာကြောင်းကို မည်သို့ချိန်ညှိရမည်ကို သတ်မှတ်ပေးသည်။
မှတ်ချက်- textAlignLast ပိုင်ဆိုင်မှုသည် "justify" ဟုသတ်မှတ်ထားသော text-align property ဖြင့်သာ လုပ်ဆောင်နိုင်မည်ဖြစ်သည်။
Browser ပံ့ပိုးမှု
Property | |||||
---|---|---|---|---|---|
textAlignLast | Yes | Yes | Not supported Use MozTextAlignLast |
Yes | Yes |
မှတ်ချက်- "start" နှင့် "end" တန်ဖိုးများကို Internet Explorer တွင် မပံ့ပိုးပါ။
အထားအသို
စာသားAlignLast ပိုင်ဆိုင်မှုကို ပြန်ပေးပါ။
object.style.textAlignLast
textAlignLast ကို သတ်မှတ်ခြင်း-
object.style.textAlignLast = "auto|left|right|center|justify|start|end|initial|inherit"
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description |
---|---|
auto | Default value. The last line is justified and aligned left |
left | The last line is aligned to the left |
right | The last line is aligned to the right |
center | The last line is center-aligned |
justify | The last line is justified as the rest of the lines |
start | The last line is aligned at the beginning of the line (left if the text-direction is left-to-right, and right is the text-direction is right-to-left) |
end | The last line is aligned at the end of the line (right if the text-direction is left-to-right, and left is the text-direction is right-to-left) |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
နည်းပညာဆိုင်ရာအသေးစိတ်
မူလတန်ဖိုး: | အော်တို |
---|---|
ပြန်ပို့တန်ဖိုး- | ဒြပ်စင်တစ်ခု၏ text-align-နောက်ဆုံးပိုင်ဆိုင်မှုကို ကိုယ်စားပြုသော စာကြောင်းတစ်ခု |
CSS ဗားရှင်း | CSS3 |
ဆက်စပ်စာမျက်နှာများ
CSS ရည်ညွှန်းချက်- text-align-နောက်ဆုံးပိုင်ဆိုင်မှု
❮ စတိုင်အရာဝတ္ထု