คุณสมบัติ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 |
รายละเอียดทางเทคนิค
ค่าเริ่มต้น: | นาวแรป |
---|---|
คืนมูลค่า: | A String แทนคุณสมบัติ flex-wrap ของ element |
เวอร์ชัน CSS | CSS3 |
หน้าที่เกี่ยวข้อง
การอ้างอิง CSS: คุณสมบัติ flex-wrap
การอ้างอิง HTML DOM STYLE: flex property
การอ้างอิง HTML DOM STYLE: คุณสมบัติ flexBasis
การอ้างอิง HTML DOM STYLE: คุณสมบัติ flexDirection
การอ้างอิงสไตล์ HTML DOM: คุณสมบัติ flexFlow
การอ้างอิง HTML DOM STYLE: flexGrow property
การอ้างอิง HTML DOM STYLE: คุณสมบัติ flexShrink
❮ สไตล์วัตถุ