خاصية لون علامة الإقحام CSS
مثال
اضبط لون المؤشر في عناصر الإدخال:
input {
caret-color: red;
}
التعريف والاستخدام
تحدد الخاصية لون caret-color
المؤشر (علامة الإقحام) في المدخلات أو textareas أو أي عنصر قابل للتحرير.
القيمة الافتراضية: | تلقاءي |
---|---|
وارث: | نعم |
متحرك: | رقم. اقرأ عن animatable |
الإصدار: | CSS3 |
بناء جملة JavaScript: | الكائن .style.caretColor = "أحمر" |
دعم المتصفح
تحدد الأرقام الواردة في الجدول إصدار المتصفح الأول الذي يدعم الخاصية بالكامل.
Property | |||||
---|---|---|---|---|---|
caret-color | 57.0 | 79.0 | 53.0 | 11.1 | 44.0 |
بنية CSS
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 |