Estilo propiedad flexWrap
Ejemplo
Envuelva los artículos flexibles si es necesario:
document.getElementById("main".style.flexWrap = "wrap";
Definición y uso
La propiedad flexWrap especifica si los elementos flexibles deben envolverse o no.
Nota: si los elementos no son elementos flexibles, la propiedad flexWrap no tiene efecto.
Compatibilidad con navegador
Property | |||||
---|---|---|---|---|---|
flexWrap | Yes | 11.0 | Yes | 9.0 | Yes |
Sintaxis
Devuelve la propiedad flexWrap:
object.style.flexWrap
Establezca la propiedad flexWrap:
object.style.flexWrap = "nowrap|wrap|wrap-reverse|initial|inherit"
Valores de propiedad
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 |
Detalles técnicos
Valor por defecto: | ahora rap |
---|---|
Valor de retorno: | Una cadena, que representa la propiedad de envoltura flexible de un elemento |
Versión CSS | CSS3 |
páginas relacionadas
Referencia de CSS: propiedad de envoltura flexible
Referencia HTML DOM STYLE: propiedad flexible
HTML DOM STYLE Referencia: propiedad flexBasis
Referencia HTML DOM STYLE: propiedad flexDirection
HTML DOM STYLE Referencia: propiedad flexFlow
Referencia HTML DOM STYLE: propiedad flexGrow
Referencia HTML DOM STYLE: propiedad flexShrink
❮ Objeto de estilo