نمط textAlignLast خاصية
مثال
قم بمحاذاة السطر الأخير من الفقرة إلى اليمين:
document.getElementById("myDIV").style.textAlignLast = "right";
التعريف والاستخدام
تحدد الخاصية textAlignLast كيفية محاذاة السطر الأخير من النص.
ملاحظة: ستعمل الخاصية textAlignLast فقط مع العناصر التي تم ضبط خاصية محاذاة النص على "ضبط".
دعم المتصفح
Property | |||||
---|---|---|---|---|---|
textAlignLast | Yes | Yes | Not supported Use MozTextAlignLast |
Yes | Yes |
ملاحظة: لا يتم دعم القيمتين "start" و "end" في Internet Explorer.
بناء الجملة
قم بإرجاع خاصية textAlignLast:
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 |
تفاصيل تقنية
القيمة الافتراضية: | تلقاءي |
---|---|
قيمة الإرجاع: | سلسلة ، تمثل خاصية محاذاة النص الأخيرة لعنصر |
إصدار CSS | CSS3 |
الصفحات ذات الصلة
مرجع CSS: خاصية text-align-last
❮ نمط الكائن