스타일 textDecorationStyle 속성
예시
요소 아래에 물결선 표시:
document.getElementById("demo").style.textDecorationStyle = "wavy";
정의 및 사용
textDecorationStyle 속성은 라인이 표시되는 방식을 설정하거나 반환합니다(있는 경우).
브라우저 지원
Property | |||||
---|---|---|---|---|---|
textDecorationStyle | 57.0 | 79.0 | 36.0 6.0 Moz |
12.1 | 44.0 |
통사론
textDecorationStyle 속성을 반환합니다.
object.style.textDecorationStyle
textDecorationStyle 속성을 설정합니다.
object.style.textDecorationStyle = "solid|double|dotted|dashed|wavy|initial|inherit"
속성 값
Value | Description |
---|---|
solid | Default value. The line will display as a single line |
double | The line will display as a double line |
dotted | The line will display as a dotted line |
dashed | The line will display as a dashed line |
wavy | The line will display as a wavy line |
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-decoration-style 속성
❮ 스타일 개체