CSS caret-color 속성
예시
입력 요소의 커서 색상 설정:
input {
caret-color: red;
}
정의 및 사용
속성 은 caret-color
입력, 텍스트 영역 또는 편집 가능한 모든 요소의 커서(캐럿) 색상을 지정합니다.
브라우저 지원
표의 숫자는 속성을 완전히 지원하는 첫 번째 브라우저 버전을 지정합니다.
Property | |||||
---|---|---|---|---|---|
caret-color | 57.0 | 79.0 | 53.0 | 11.1 | 44.0 |
CSS 구문
caret-color: auto|color|initial|inherit;
속성 값
Value | Description |
---|---|
auto | Default. Browsers uses the currentColor for the caret |
color | Specifies a color to use for the caret. All legal color values can be used (rgb, hex, named-color, etc). For more information on legal values, read our CSS Colors Tutorial |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |