CSS caret-kleur eigenschap
Voorbeeld
Stel de kleur van de cursor in invoerelementen in:
input {
caret-color: red;
}
Definitie en gebruik
De caret-color
eigenschap specificeert de kleur van de cursor (caret) in invoer, tekstgebieden of elk ander element dat kan worden bewerkt.
Standaardwaarde: | auto |
---|---|
geërfd: | Ja |
Animeerbaar: | Nee. Lees over animeren |
Versie: | CSS3 |
JavaScript-syntaxis: | object .style.caretColor="rood" |
Browserondersteuning
De getallen in de tabel geven de eerste browserversie aan die de eigenschap volledig ondersteunt.
Property | |||||
---|---|---|---|---|---|
caret-color | 57.0 | 79.0 | 53.0 | 11.1 | 44.0 |
CSS-syntaxis
caret-color: auto|color|initial|inherit;
Eigendomswaarden
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 |