스타일 textOverflow 속성
예시
textOverflow 속성을 변경합니다.
document.getElementById("myDIV").style.textOverflow = "ellipsis";
정의 및 사용
textOverflow 속성은 텍스트가 포함하는 요소를 오버플로할 때 발생해야 하는 작업을 지정합니다.
브라우저 지원
Property | |||||
---|---|---|---|---|---|
textOverflow | Yes | Yes | Yes | Yes | Yes |
통사론
textOverflow 속성을 반환합니다.
object.style.textOverflow
textOverflow 속성을 설정합니다.
object.style.textOverflow = "clip|ellipsis|string|initial|inherit"
속성 값
Value | Description |
---|---|
clip | Default value. Clips the text |
ellipsis | Render an ellipsis ("...") to represent clipped text |
string | Render the given string to represent clipped text |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
기술적 세부 사항
기본값: | 클립 |
---|---|
반환 값: | 요소의 텍스트 오버플로 속성을 나타내는 문자열 |
CSS 버전 | CSS3 |
관련 페이지
CSS 참조: text-overflow 속성
❮ 스타일 개체