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