CSS caret-color Свойство
Пример
Задайте цвет курсора во входных элементах:
input {
caret-color: red;
}
Определение и использование
Свойство caret-color
определяет цвет указателя (курсора) в входах, текстовое или любом элементе, редактируемом.
Значение по умолчанию: | auto |
---|---|
Inherited: | yes |
Animatable: | Читайте о animatable |
Version: | CSS3 |
Синтаксис JavaScript: | object.style.caretColor="red" |
Поддержка браузера
Номера в таблице указывают первую версию браузера, которая полностью поддерживает свойство.
Свойство | |||||
---|---|---|---|---|---|
caret-color | 57.0 | Не поддерживается | 53.0 | Не поддерживается | 44.0 |
Синтаксис CSS
caret-color: auto|color;
Значения свойств
Значение | Описание |
---|---|
auto | По умолчанию. Браузеры используют куррентколор для |
color | Задает цвет, используемый для |