스타일 textAlignLast 속성
예시
단락의 마지막 줄을 오른쪽에 맞춥니다.
document.getElementById("myDIV").style.textAlignLast = "right";
정의 및 사용
textAlignLast 속성은 텍스트의 마지막 줄을 정렬하는 방법을 지정합니다.
참고: textAlignLast 속성은 text-align 속성이 "justify"로 설정된 요소에 대해서만 작동합니다.
브라우저 지원
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 |
기술적 세부 사항
기본값: | 자동 |
---|---|
반환 값: | 요소의 text-align-last 속성을 나타내는 String |
CSS 버전 | CSS3 |
관련 페이지
CSS 참조: text-align-last 속성
❮ 스타일 개체