Gaya flexFlow Properti
Contoh
Buat item fleksibel ditampilkan dalam kolom, dan tanpa pembungkus:
document.getElementById("main").style.flexFlow = "column nowrap";
Definisi dan Penggunaan
Properti flexFlow adalah properti singkatan untuk properti flexDirection dan flexWrap.
Properti flexDirection menentukan arah item fleksibel.
Properti flexWrap menentukan apakah item fleksibel harus dibungkus atau tidak.
Catatan: Jika elemen bukan item fleksibel, properti flexFlow tidak akan berpengaruh.
Dukungan Peramban
Property | |||||
---|---|---|---|---|---|
flexFlow | Yes | 11.0 | Yes | 9.0 | Yes |
Sintaksis
Kembalikan properti flexFlow:
object.style.flexFlow
Setel properti flexFlow:
object.style.flexFlow = "flex-direction flex-wrap|initial|inherit"
Nilai properti
Value | Description |
---|---|
flex-direction | Possible values: row row-reverse column column-reverse initial inherit Default value is "row". Specifying the direction of the flexible items |
flex-wrap | Possible values: nowrap wrap wrap-reverse initial inherit Default value is "nowrap". Specifying whether the flexible items should wrap or not |
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: | baris sekarang |
---|---|
Nilai Kembali: | Sebuah String, mewakili properti flex-flow dari suatu elemen |
Versi CSS | CSS3 |
Halaman Terkait
Referensi CSS: properti aliran fleksibel
Referensi GAYA DOM HTML: properti fleksibel
Referensi GAYA DOM HTML: properti flexBasis
Referensi GAYA DOM HTML: properti flexDirection
Referensi GAYA DOM HTML: properti flexGrow
Referensi GAYA DOM HTML: properti flexShrink
Referensi GAYA DOM HTML: properti flexWrap
Objek Gaya