Stil caretColor Özellik
Örnek
Bir giriş alanı içinde imlecin rengini kırmızıya ayarlayın:
document.getElementById("input1").style.caretColor = "red";
Tanım ve Kullanım
caretColor özelliği, girişlerde, metin alanlarında veya düzenlenebilir herhangi bir öğede imlecin (şapka) rengini belirtir.
Tarayıcı Desteği
Property | |||||
---|---|---|---|---|---|
caretColor | 57.0 | 79.0 | 53.0 | 11.1 | 44.0 |
Sözdizimi
caretColor özelliğini döndürün:
object.style.caretColor
caretColor özelliğini ayarlayın:
object.style.caretColor = "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 |
Teknik detaylar
Varsayılan değer: | Oto |
---|---|
Geri dönüş değeri: | Bir öğenin şapka rengini temsil eden bir String |
CSS Sürümü | CSS3 |
İlgili Sayfalar
CSS referansı: şapka rengi özelliği
❮ Stil Nesnesi