نمط الخاصية textDecorationStyle
مثال
اعرض خطًا متموجًا تحت العنصر:
document.getElementById("demo").style.textDecorationStyle = "wavy";
التعريف والاستخدام
تحدد الخاصية textDecorationStyle أو تعيد كيفية عرض السطر ، إن وجد.
دعم المتصفح
Property | |||||
---|---|---|---|---|---|
textDecorationStyle | 57.0 | 79.0 | 36.0 6.0 Moz |
12.1 | 44.0 |
بناء الجملة
قم بإرجاع خاصية textDecorationStyle:
object.style.textDecorationStyle
قم بتعيين خاصية textDecorationStyle:
object.style.textDecorationStyle = "solid|double|dotted|dashed|wavy|initial|inherit"
قيم الملكية
Value | Description |
---|---|
solid | Default value. The line will display as a single line |
double | The line will display as a double line |
dotted | The line will display as a dotted line |
dashed | The line will display as a dashed line |
wavy | The line will display as a wavy line |
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: خاصية نمط زخرفة النص
❮ نمط الكائن