CSS text-decoration-color 속성
예시
텍스트 장식의 색상을 빨간색으로 설정합니다.
p
{
text-decoration: underline;
text-decoration-color: red;
}
정의 및 사용
속성 은 text-decoration-color
텍스트 장식의 색상(밑줄, 윗줄, 선 통과)을 지정합니다.
기본값: | 현재 색상 |
---|---|
상속: | 아니요 |
애니메이션 가능: | 예. 애니메이션 가능 에 대해 읽기 |
버전: | CSS3 |
자바스크립트 구문: | 개체 .style.textDecorationColor="빨간색" |
브라우저 지원
표의 숫자는 속성을 완전히 지원하는 첫 번째 브라우저 버전을 지정합니다.
-moz- 또는 -webkit- 뒤에 오는 숫자는 접두사와 함께 작동한 첫 번째 버전을 지정합니다.
Property | |||||
---|---|---|---|---|---|
text-decoration-color | 57.0 | 79.0 | 36.0 6.0 -moz- |
12.1 7.1 -webkit- |
44.0 |
CSS 구문
text-decoration-color: color|initial|inherit;
속성 값
Value | Description | Play it |
---|---|---|
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 |
관련 페이지
CSS 튜토리얼: CSS 텍스트
HTML DOM 참조: textDecorationColor 속성