Styl textAlignLast Property
Voorbeeld
Belyn die laaste reël van 'n pragraaf na regs:
document.getElementById("myDIV").style.textAlignLast = "right";
Definisie en gebruik
Die textAlignLast-eienskap spesifiseer hoe om die laaste reël van 'n teks in lyn te bring.
Let wel: Die textAlignLast-eienskap sal slegs werk vir elemente met die text-align-eienskap wat op "justify" gestel is.
Blaaierondersteuning
Property | |||||
---|---|---|---|---|---|
textAlignLast | Yes | Yes | Not supported Use MozTextAlignLast |
Yes | Yes |
Let wel: Die waardes "begin" en "einde" word nie in Internet Explorer ondersteun nie.
Sintaksis
Gee die textAlignLast-eienskap terug:
object.style.textAlignLast
Stel die textAlignLast-eienskap:
object.style.textAlignLast = "auto|left|right|center|justify|start|end|initial|inherit"
Eiendomswaardes
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 |
Tegniese besonderhede
Standaard waarde: | outo |
---|---|
Terugkeerwaarde: | 'n String, wat die teks-belyn-laaste eienskap van 'n element verteenwoordig |
CSS weergawe | CSS3 |
Verwante bladsye
CSS verwysing: teks-belyn-laaste eiendom
❮ Stylvoorwerp