نمط خاصية flexWrap
مثال
اجعل العناصر المرنة تلف إذا لزم الأمر:
document.getElementById("main".style.flexWrap = "wrap";
التعريف والاستخدام
تحدد الخاصية flexWrap ما إذا كان يجب التفاف العناصر المرنة أم لا.
ملاحظة: إذا لم تكن العناصر عناصر مرنة ، فلن يكون لخاصية flexWrap أي تأثير.
دعم المتصفح
Property | |||||
---|---|---|---|---|---|
flexWrap | Yes | 11.0 | Yes | 9.0 | Yes |
بناء الجملة
إعادة خاصية flexWrap:
object.style.flexWrap
قم بتعيين خاصية flexWrap:
object.style.flexWrap = "nowrap|wrap|wrap-reverse|initial|inherit"
قيم الملكية
Value | Description |
---|---|
nowrap | Default value. Specifies that the flexible items will not wrap |
wrap | Specifies that the flexible items will wrap if necessary |
wrap-reverse | Specifies that the flexible items will wrap, if necessary, in reverse order |
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: خاصية الالتفاف المرن
مرجع HTML DOM STYLE: الخاصية المرنة
مرجع HTML DOM STYLE: خاصية flexBasis
مرجع HTML DOM STYLE: خاصية flexDirection
مرجع HTML DOM STYLE: خاصية flexFlow
مرجع HTML DOM STYLE: خاصية flexGrow
مرجع HTML DOM STYLE: خاصية flexShrink
❮ نمط الكائن