Properti HTML DOM Style flexWrap
contoh
Mari proyek Fleksibel ketika garis pembongkaran diperlukan:
document.getElementById("main".style.flexWrap="wrap";
Coba »
Definisi dan Penggunaan
Atribut flexWrap menentukan proyek fleksibel dibagi baris atau kolom split.
Catatan: Jika elementidak item fleksibel, properti flexWrap tidak bekerja.
Dukungan Browser
Firefox, Opera dan Chrome mendukung properti flexWrap.
tatabahasa
Kembali sifat flexWrap:
object .style.flexWrap
Pengaturan properti flexWrap:
object .style.flexWrap="nowrap|wrap|wrap-reverse|initial|inherit"
Nilai properti
值 | 描述 |
---|---|
nowrap | 默认值。规定灵活的项目不拆行或不拆列。 |
wrap | 规定灵活的项目在必要的时候拆行或拆列。 |
wrap-reverse | 规定灵活的项目在必要的时候拆行或拆列,但是以相反的顺序。 |
initial | 设置该属性为它的默认值。请参阅 initial 。 |
inherit | 从父元素继承该属性。请参阅 inherit 。 |
rincian teknis
default: | nowrap |
---|---|
Pengembalian: | String mewakili flex-wrap atribut elemen. |
versi CSS | CSS3 |
Artikel terkait
Referensi CSS: Properti Flex-wrap
HTML DOM STYLE Referensi: Flex Properti
HTML DOM STYLE Referensi: properti flexBasis
HTML DOM STYLE Referensi: properti flexDirection
HTML DOM STYLE Referensi: properti FlexFlow
HTML DOM STYLE Referensi: properti flexGrow
HTML DOM STYLE Referensi: properti flexShrink