CSS text-emphasis-color 속성
- 이전 페이지 text-emphasis
- 다음 페이지 text-emphasis-position
정의와 사용법
text-emphasis-color
속성을 설정하여 강조 표시의 색상을 지정합니다.
추천:제외하고 설정되지 않으면: text-emphasis-style 강조 표시가 표시되지 않습니다.
예제
text-emphasis-color 속성을 사용하면:
p.ex1 { text-emphasis-color: red; } p.ex2 { text-emphasis-color: blue; } p.ex3 { text-emphasis-color: rgb(130, 180, 150); } p.ex4 { text-emphasis-color: currentcolor; }
CSS 문법
text-emphasis-color: color|inherit|initial;
속성 값
값 | 설명 |
---|---|
color |
강조 표시의 색상을 설정합니다. 색상을 지정하지 않으면 currentcolor를 사용합니다. |
initial | 이 속성을 기본값으로 설정합니다. 참조 initial。 |
inherit | 부모 요소에서 이 속성을 상속합니다. 참조 inherit。 |
기술 세부 사항
기본값: | currentcolor |
---|---|
상속성: | yes |
버전: | CSS3 |
JavaScript 문법: | object.style.textEmphasisColor="blue" |
브라우저 지원
표格에서의 숫자는 이 속성을 최초로 완전히 지원한 브라우저 버전을 나타냅니다.
크롬 | 에지 | 파이어폭스 | 사파리 | 오페라 |
---|---|---|---|---|
99.0 | 99.0 | 46.0 | 7.0 | 85.0 |
- 이전 페이지 text-emphasis
- 다음 페이지 text-emphasis-position