CSS text-align- last Property
ဥပမာ
<div> ဒြပ်စင်သုံးခုတွင် စာသား၏နောက်ဆုံးစာကြောင်းကို ချိန်ညှိပါ-
div.a
{
text-align: justify; /* For Edge */
text-align-last: right;
}
div.b
{
text-align: justify; /* For Edge */
text-align-last: center;
}
div.c
{
text-align: justify; /* For Edge */
text-align-last: justify;
}
အောက်တွင် နောက်ထပ် "စမ်းသုံးကြည့်ပါ" ဥပမာများ။
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
ပိုင်ဆိုင်မှု သည် text-align-last
စာသားတစ်ခု၏ နောက်ဆုံးစာကြောင်းကို ချိန်ညှိနည်းကို သတ်မှတ်ပေးသည်။
text-align-last
ရွေးချယ်ထားသောဒြပ်စင်အတွင်း နောက်ဆုံးစာကြောင်းအားလုံးအတွက် ချိန်ညှိမှုကို သတ်မှတ် ပေးထားကြောင်း သတိပြုပါ ။ ထို့ကြောင့် သင့်တွင် စာပိုဒ်သုံးပိုဒ်ပါသော <div> ရှိပါက စာပိုဒ် text-align-last
တစ်ခုစီ၏ နောက်ဆုံးစာကြောင်းသို့ သက်ရောက်မည်ဖြစ်သည်။ text-align-last
ကွန်တိန်နာရှိ နောက်ဆုံးစာပိုဒ်ကိုသာ အသုံးပြုရန်၊ သင်သည် :last child ကို အသုံးပြုနိုင်ပြီး၊ အောက်ဖော်ပြပါ ဥပမာကို ကြည့်ပါ ။
မှတ်ချက်- Edge 79 မတိုင်မီတွင်၊ text-align-last
ပိုင်ဆိုင်မှုသည် "text-align: justify" ပါရှိသော စာသားပေါ်တွင်သာ အလုပ်လုပ်ပါသည်။
မူလတန်ဖိုး: | အော်တို |
---|---|
အမွေဆက်ခံသည်- | ဟုတ်တယ် |
သက်ဝင်လှုပ်ရှားနိုင်သော | မဟုတ်ဘူး ကာတွန်း အကြောင်းဖတ်ပါ။ |
ဗားရှင်း- | CSS3 |
JavaScript syntax- | အရာဝတ္ထု .style.textAlignLast="right" |
Browser ပံ့ပိုးမှု
ဇယားရှိ နံပါတ်များသည် ပိုင်ဆိုင်မှုကို အပြည့်အဝထောက်ခံသည့် ပထမဆုံးဘရောက်ဆာဗားရှင်းကို သတ်မှတ်ပေးသည်။
နံပါတ်များ -moz- နောက်တွင် ရှေ့ဆက်တွဲဖြင့် လုပ်ဆောင်သော ပထမဗားရှင်းကို သတ်မှတ်ပါ။
Property | |||||
---|---|---|---|---|---|
text-align-last | 47.0 | 5.5* | 49.0 12.0 -moz- |
Not supported | 34.0 |
*Internet Explorer 11 (နှင့် အစောပိုင်း) တွင် "စတင်" နှင့် "အဆုံး" တန်ဖိုးများကို ပံ့ပိုးမထားပါ။
CSS Syntax
text-align-last: auto|left|right|center|justify|start|end|initial|inherit;
အိမ်ခြံမြေတန်ဖိုးများ
Value | Description | Play it |
---|---|---|
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 |
နောက်ထပ် ဥပမာများ
ဥပမာ
ကွန်တိန်နာရှိ နောက်ဆုံးစာကြောင်းတွင် စာသား-ညှိ-နောက်ဆုံးကို သုံးပါ-
div.b p:last-child {
text-align-last: center;
}
ဆက်စပ်စာမျက်နှာများ
CSS သင်ခန်းစာ- CSS စာသား
HTML DOM ရည်ညွှန်းချက်- textAlignLast ပိုင်ဆိုင်မှု