propriedade HTML DOM Estilo textAlignLast
Exemplos
A última linha do parágrafo é alinhado à direita:
document.getElementById("myDIV").style.textAlignLast="right";
tente »
Definição e Uso
textAlignLast atributo especifica como alinhar o texto da última linha.
Nota: apenas textAlignLast propriedade quando o trabalho é "justificar" a propriedade text-align é definido.
Suporte a navegadores
Somente o Internet Explorer suporta textAlignLast propriedade.
Firefox suporta outra alternativa do atributo propriedade que MozTextAlignLast propriedade.
O Internet Explorer não suporta o valor "Start" e "fim".
gramática
Voltar propriedades textAlignLast:
object .style.textAlignLast
Definindo as propriedades textAlignLast:
object .style.textAlignLast="auto|left|right|center|justify|start|end|initial|inherit"
Valor de propriedade
值 | 描述 |
---|---|
auto | 默认值。最后一行被调整,并向左对齐。 |
left | 最后一行向左对齐。 |
right | 最后一行向右对齐。 |
center | 最后一行居中对齐。 |
justify | 最后一行被调整为两端对齐。 |
start | 最后一行在行开头对齐(如果 text-direction 是从左到右,则向左对齐;如果 text-direction 是从右到左,则向右对齐)。 |
end | 最后一行在行末尾对齐(如果 text-direction 是从左到右,则向右对齐;如果 text-direction 是从右到左,则向左对齐)。 |
initial | 设置该属性为它的默认值。请参阅 initial 。 |
inherit | 从父元素继承该属性。请参阅 inherit 。 |
detalhes técnicos
padrão: | automático |
---|---|
retorna: | String que representa atributo text-align última do elemento. |
versão CSS | CSS3 |
artigos relacionados
Referência CSS: text-align = left-atributo Última