Stil metniAlignLast Özellik
Örnek
Bir paragrafın son satırını sağa hizalayın:
document.getElementById("myDIV").style.textAlignLast = "right";
Tanım ve Kullanım
textAlignLast özelliği, bir metnin son satırının nasıl hizalanacağını belirtir.
Not: textAlignLast özelliği yalnızca metin hizalama özelliği "yasla" olarak ayarlanmış öğeler için çalışır.
Tarayıcı Desteği
Property | |||||
---|---|---|---|---|---|
textAlignLast | Yes | Yes | Not supported Use MozTextAlignLast |
Yes | Yes |
Not: "Başlangıç" ve "bitiş" değerleri Internet Explorer'da desteklenmez.
Sözdizimi
textAlignLast özelliğini döndürün:
object.style.textAlignLast
textAlignLast özelliğini ayarlayın:
object.style.textAlignLast = "auto|left|right|center|justify|start|end|initial|inherit"
Mülk değerleri
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 |
Teknik detaylar
Varsayılan değer: | Oto |
---|---|
Geri dönüş değeri: | Bir öğenin text-align-last özelliğini temsil eden bir String |
CSS Sürümü | CSS3 |
İlgili Sayfalar
CSS referansı: text-align-last özelliği
❮ Stil Nesnesi