خاصية سطر زخرفة النص في CSS
مثال
تعيين أنواع مختلفة من خطوط زخرفة النص:
div.a
{
text-decoration-line: overline;
}
div.b
{
text-decoration-line: underline;
}
div.c
{
text-decoration-line: line-through;
}
div.d
{
text-decoration-line: overline underline;
}
التعريف والاستخدام
تحدد الخاصية نوع زخرفة text-decoration-line
النص المراد استخدامها (مثل التسطير ، والخط العلوي ، والخط عبر).
نصيحة: انظر أيضًا إلى خاصية زخرفة النص ، وهي خاصية مختصرة لخط زخرفة النص ونمط زخرفة النص ولون زخرفة النص.
ملاحظة: يمكنك أيضًا دمج أكثر من قيمة ، مثل التسطير والتسطير لعرض الأسطر أسفل النص وفوقه.
القيمة الافتراضية: | لا أحد |
---|---|
وارث: | رقم |
متحرك: | رقم. اقرأ عن animatable |
الإصدار: | CSS3 |
بناء جملة JavaScript: | الكائن .style.textDecorationLine = "overline" |
دعم المتصفح
تحدد الأرقام الواردة في الجدول إصدار المتصفح الأول الذي يدعم الخاصية بالكامل.
تحدد الأرقام المتبوعة بـ -moz- أو -webkit- الإصدار الأول الذي يعمل مع بادئة.
Property | |||||
---|---|---|---|---|---|
text-decoration-line | 57.0 | 79.0 | 36.0 6.0 -moz- |
12.1 7.1 -webkit- |
44.0 |
بنية CSS
text-decoration-line: none|underline|overline|line-through|initial|inherit;
قيم الملكية
Value | Description | Play it |
---|---|---|
none | Default value. Specifies no line for the text-decoration | |
underline | Specifies that a line will be displayed under the text | |
overline | Specifies that a line will be displayed over the text | |
line-through | Specifies that a line will be displayed through the text | |
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: خاصية textDecorationLine