CSS şapka rengi Özellik
Örnek
Giriş öğelerinde imlecin rengini ayarlayın:
input {
caret-color: red;
}
Tanım ve Kullanım
Özellik caret-color
, girdilerde, metin alanlarında veya düzenlenebilir herhangi bir öğede imlecin (şapka işareti) rengini belirtir.
Varsayılan değer: | Oto |
---|---|
Miras: | Evet |
canlandırılabilir: | Hayır. Canlandırılabilir hakkında bilgi edinin |
Sürüm: | CSS3 |
JavaScript sözdizimi: | nesne .style.caretColor="kırmızı" |
Tarayıcı Desteği
Tablodaki sayılar, özelliği tam olarak destekleyen ilk tarayıcı sürümünü belirtir.
Property | |||||
---|---|---|---|---|---|
caret-color | 57.0 | 79.0 | 53.0 | 11.1 | 44.0 |
CSS Sözdizimi
caret-color: auto|color|initial|inherit;
Mülk değerleri
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 |