نمط WordWrap الملكية
مثال
اسمح للكلمات الطويلة بالانفصال والالتفاف على السطر التالي:
document.getElementById("myDIV").style.wordWrap = "break-word";
التعريف والاستخدام
تتيح خاصية wordWrap إمكانية كسر الكلمات الطويلة والالتفاف على السطر التالي.
دعم المتصفح
Property | |||||
---|---|---|---|---|---|
wordWrap | Yes | Yes | Yes | Yes | Yes |
بناء الجملة
إرجاع خاصية WordWrap:
object.style.wordWrap
قم بتعيين خاصية WordWrap:
object.style.wordWrap = "normal|break-word|initial|inherit"
قيم الملكية
Value | Description |
---|---|
normal | Break words only at allowed break points |
break-word | Allows unbreakable words to be broken |
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: خاصية التفاف النص
❮ نمط الكائن