نمط textDecorationColor الملكية
مثال
تغيير لون الخط في نص تحته خط:
document.getElementById("demo").style.textDecorationColor = "red";
التعريف والاستخدام
تحدد الخاصية textDecorationColor لون زخرفة النص (تسطير ، خطوط علوية ، خطوط خطية).
ملاحظة: لن يكون للخاصية textDecorationColor سوى تأثير على العناصر ذات الزخرفة النصية المرئية.
دعم المتصفح
Property | |||||
---|---|---|---|---|---|
textDecorationColor | 57 | 79.0 | 36.0 6.0 Moz |
7.1 Webkit | 44.0 |
بناء الجملة
قم بإرجاع خاصية textDecorationColor:
object.style.textDecorationColor
قم بتعيين خاصية textDecorationColor:
object.style.textDecorationColor = "color|initial|inherit"
قيم الملكية
Value | Description |
---|---|
color | Specifies the color of the text-decoration |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
تفاصيل تقنية
القيمة الافتراضية: | CurrentColor |
---|---|
قيمة الإرجاع: | سلسلة ، تمثل خاصية لون زخرفة النص لعنصر |
إصدار CSS | CSS3 |
الصفحات ذات الصلة
مرجع CSS: خاصية لون زخرفة النص
❮ نمط الكائن