propriété HTML DOM style textAlignLast
Exemples
La dernière ligne du paragraphe est aligné à droite:
document.getElementById("myDIV").style.textAlignLast="right";
Essayez »
Définition et utilisation
textAlignLast attribut spécifie comment aligner le texte de la dernière ligne.
Remarque: la propriété textAlignLast que lorsque le travail est "justify" la propriété text-align est défini.
support du navigateur
Seul Internet Explorer prend en charge la propriété textAlignLast.
Firefox supporte une autre variante de l'attribut de la propriété que la propriété MozTextAlignLast.
Internet Explorer ne supporte pas la valeur "start" et "end".
grammaire
Retour textAlignLast propriétés:
object .style.textAlignLast
Définition des propriétés textAlignLast:
object .style.textAlignLast="auto|left|right|center|justify|start|end|initial|inherit"
Valeur de la propriété
值 | 描述 |
---|---|
auto | 默认值。最后一行被调整,并向左对齐。 |
left | 最后一行向左对齐。 |
right | 最后一行向右对齐。 |
center | 最后一行居中对齐。 |
justify | 最后一行被调整为两端对齐。 |
start | 最后一行在行开头对齐(如果 text-direction 是从左到右,则向左对齐;如果 text-direction 是从右到左,则向右对齐)。 |
end | 最后一行在行末尾对齐(如果 text-direction 是从左到右,则向右对齐;如果 text-direction 是从右到左,则向左对齐)。 |
initial | 设置该属性为它的默认值。请参阅 initial 。 |
inherit | 从父元素继承该属性。请参阅 inherit 。 |
détails techniques
Par défaut: | auto |
---|---|
Retours: | String qui représente l'attribut text-align-last de l'élément. |
CSS version | CSS3 |
articles connexes
Référence CSS: text-align = left-attribut Dernière