스타일 textDecorationColor 속성
예시
밑줄이 그어진 텍스트에서 선의 색상을 변경합니다.
document.getElementById("demo").style.textDecorationColor = "red";
정의 및 사용
textDecorationColor 속성은 텍스트 장식의 색상(밑줄, 윗줄, 선 통과)을 지정합니다.
참고: textDecorationColor 속성은 텍스트 장식이 보이는 요소에만 영향을 미칩니다.
브라우저 지원
Property | |||||
---|---|---|---|---|---|
textDecorationColor | 57 | 79.0 | 36.0 6.0 Moz |
7.1 Webkit | 44.0 |
통사론
textDecorationColor 속성을 반환합니다.
object.style.textDecorationColor
textDecorationColor 속성을 설정합니다.
object.style.textDecorationColor = "color|initial|inherit"
속성 값
Value | Description |
---|---|
color | Specifies the color of the text-decoration |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
기술적 세부 사항
기본값: | 현재 색상 |
---|---|
반환 값: | 요소의 text-decoration-color 속성을 나타내는 String |
CSS 버전 | CSS3 |
관련 페이지
CSS 참조: text-decoration-color 속성
❮ 스타일 개체