خاصية زخرفة نصوص CSS
مثال
تعيين أنواع مختلفة من أنماط زخرفة النص:
div.a
{
text-decoration-line: underline;
text-decoration-style: solid;
}
div.b
{
text-decoration-line: underline;
text-decoration-style: wavy;
}
div.c
{
text-decoration-line: underline;
text-decoration-style: double;
}
div.d
{
text-decoration-line: overline underline;
text-decoration-style: wavy;
}
التعريف والاستخدام
تحدد الخاصية نمط text-decoration-style
زخرفة النص (مثل صلب ، مموج ، منقط ، متقطع ، مزدوج).
نصيحة: انظر أيضًا إلى خاصية زخرفة النص ، وهي خاصية مختصرة لخط زخرفة النص ونمط زخرفة النص ولون زخرفة النص.
القيمة الافتراضية: | صلب |
---|---|
وارث: | رقم |
متحرك: | رقم. اقرأ عن animatable |
الإصدار: | CSS3 |
بناء جملة JavaScript: | الكائن .style.textDecorationStyle = "wavy" |
دعم المتصفح
تحدد الأرقام الواردة في الجدول إصدار المتصفح الأول الذي يدعم الخاصية بالكامل.
الأرقام متبوعة بـ -moz- تحدد الإصدار الأول الذي يعمل بالبادئة.
Property | |||||
---|---|---|---|---|---|
text-decoration-style | 57.0 | 79.0 | 36.0 6.0 -moz- |
12.1 | 44.0 |
بنية CSS
text-decoration-style: solid|double|dotted|dashed|wavy|initial|inherit;
قيم الملكية
Value | Description | Play it |
---|---|---|
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: نص CSS
مرجع DOM HTML: خاصية textDecorationStyle