Gaya flexWrap Properti
Contoh
Buat bungkus barang fleksibel jika perlu:
document.getElementById("main".style.flexWrap = "wrap";
Definisi dan Penggunaan
Properti flexWrap menentukan apakah item fleksibel harus dibungkus atau tidak.
Catatan: Jika elemennya bukan item yang fleksibel, properti flexWrap tidak akan berpengaruh.
Dukungan Peramban
Property | |||||
---|---|---|---|---|---|
flexWrap | Yes | 11.0 | Yes | 9.0 | Yes |
Sintaksis
Kembalikan properti flexWrap:
object.style.flexWrap
Setel properti flexWrap:
object.style.flexWrap = "nowrap|wrap|wrap-reverse|initial|inherit"
Nilai properti
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 |
Detail Teknis
Nilai Bawaan: | sekarang |
---|---|
Nilai Kembali: | Sebuah String, mewakili properti flex-wrap dari suatu elemen |
Versi CSS | CSS3 |
Halaman Terkait
Referensi CSS: properti bungkus fleksibel
Referensi GAYA DOM HTML: properti fleksibel
Referensi GAYA DOM HTML: properti flexBasis
Referensi GAYA DOM HTML: properti flexDirection
Referensi GAYA DOM HTML: properti flexFlow
Referensi GAYA DOM HTML: properti flexGrow
Referensi GAYA DOM HTML: properti flexShrink
Objek Gaya