Propiedad de estilo flexFlow
Ejemplo
Haga que los elementos flexibles se muestren en columnas y sin envoltura:
document.getElementById("main").style.flexFlow = "column nowrap";
Definición y uso
La propiedad flexFlow es una propiedad abreviada para las propiedades flexDirection y flexWrap.
La propiedad flexDirection especifica la dirección de los elementos flexibles.
La propiedad flexWrap especifica si los elementos flexibles deben envolverse o no.
Nota: si los elementos no son elementos flexibles, la propiedad flexFlow no tiene efecto.
Compatibilidad con navegador
Property | |||||
---|---|---|---|---|---|
flexFlow | Yes | 11.0 | Yes | 9.0 | Yes |
Sintaxis
Devuelve la propiedad flexFlow:
object.style.flexFlow
Establezca la propiedad flexFlow:
object.style.flexFlow = "flex-direction flex-wrap|initial|inherit"
Valores de propiedad
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 |
Detalles técnicos
Valor por defecto: | fila ahora rap |
---|---|
Valor devuelto: | Una cadena, que representa la propiedad de flujo flexible de un elemento |
Versión CSS | CSS3 |
páginas relacionadas
Referencia de CSS: propiedad de flujo flexible
Referencia HTML DOM STYLE: propiedad flex
HTML DOM STYLE Referencia: propiedad flexBasis
Referencia HTML DOM STYLE: propiedad flexDirection
Referencia HTML DOM STYLE: propiedad flexGrow
Referencia HTML DOM STYLE: propiedad flexShrink
HTML DOM STYLE Referencia: propiedad flexWrap
❮ Objeto de estilo