Properti aliran fleksibel CSS
Contoh
Buat item fleksibel ditampilkan dalam urutan terbalik, dan bungkus jika perlu:
div {
display: flex;
flex-flow: row-reverse wrap;
}
Definisi dan Penggunaan
Properti flex-flow
adalah properti singkatan untuk:
Catatan: Jika elemen bukan item fleksibel, flex-flow
properti tidak berpengaruh.
Nilai bawaan: | baris sekarang |
---|---|
Diwarisi: | tidak |
Animasi: | tidak. Baca tentang animasi |
Versi: kapan: | CSS3 |
Sintaks JavaScript: | objek .style.flexFlow="column nowrap" |
Dukungan Peramban
Angka-angka dalam tabel menentukan versi browser pertama yang sepenuhnya mendukung properti.
Angka yang diikuti oleh -webkit- atau -moz- menentukan versi pertama yang berfungsi dengan awalan.
Property | |||||
---|---|---|---|---|---|
flex-flow | 29.0 21.0 -webkit- |
11.0 | 28.0 18.0 -moz- |
9.0 6.1 -webkit- |
17.0 |
Sintaks CSS
flex-flow: flex-direction flex-wrap|initial|inherit;
Nilai properti
Value | Description | Play it |
---|---|---|
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 |
Halaman Terkait
Tutorial CSS: Kotak Fleksibel CSS
Referensi CSS: properti fleksibel
Referensi CSS: properti flex-direction
Referensi CSS: properti bungkus fleksibel
Referensi CSS: properti flex-basis
Referensi CSS: properti flex-grow
Referensi CSS: properti flex-shrink
Referensi DOM HTML: properti flexFlow