نمط النص _
مثال
قم بتغيير خاصية textOverflow:
document.getElementById("myDIV").style.textOverflow = "ellipsis";
التعريف والاستخدام
تحدد الخاصية textOverflow ما يجب أن يحدث عندما يتجاوز النص العنصر المحتوي.
دعم المتصفح
Property | |||||
---|---|---|---|---|---|
textOverflow | Yes | Yes | Yes | Yes | Yes |
بناء الجملة
قم بإرجاع خاصية textOverflow:
object.style.textOverflow
قم بتعيين خاصية textOverflow:
object.style.textOverflow = "clip|ellipsis|string|initial|inherit"
قيم الملكية
Value | Description |
---|---|
clip | Default value. Clips the text |
ellipsis | Render an ellipsis ("...") to represent clipped text |
string | Render the given string to represent clipped text |
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: خاصية تجاوز سعة النص
❮ نمط الكائن