सीएसएस कैरेट-रंग संपत्ति
उदाहरण
इनपुट तत्वों में कर्सर का रंग सेट करें:
input {
caret-color: red;
}
परिभाषा और उपयोग
caret-color
संपत्ति इनपुट, टेक्स्ट क्षेत्र, या संपादन योग्य किसी भी तत्व में कर्सर (कैरेट) का रंग निर्दिष्ट करती है ।
डिफ़ॉल्ट मान: | ऑटो |
---|---|
विरासत में मिला: | हां |
एनिमेटेबल: | नहीं। एनिमेटेबल के बारे में पढ़ें |
संस्करण: | CSS3 |
जावास्क्रिप्ट सिंटैक्स: | वस्तु .style.caretColor = "लाल" |
ब्राउज़र समर्थन
तालिका में संख्याएं पहले ब्राउज़र संस्करण को निर्दिष्ट करती हैं जो पूरी तरह से संपत्ति का समर्थन करता है।
Property | |||||
---|---|---|---|---|---|
caret-color | 57.0 | 79.0 | 53.0 | 11.1 | 44.0 |
सीएसएस सिंटेक्स
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 |