Vlastnost stylu flexWrap
Příklad
V případě potřeby zabalte flexibilní položky:
document.getElementById("main".style.flexWrap = "wrap";
Definice a použití
Vlastnost flexWrap určuje, zda se mají flexibilní položky zabalit nebo ne.
Poznámka: Pokud prvky nejsou flexibilní položky, vlastnost flexWrap nemá žádný vliv.
Podpora prohlížeče
Property | |||||
---|---|---|---|---|---|
flexWrap | Yes | 11.0 | Yes | 9.0 | Yes |
Syntax
Vraťte vlastnost flexWrap:
object.style.flexWrap
Nastavte vlastnost flexWrap:
object.style.flexWrap = "nowrap|wrap|wrap-reverse|initial|inherit"
Hodnoty vlastností
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 |
Technické údaje
Výchozí hodnota: | nynírap |
---|---|
Návratová hodnota: | Řetězec představující vlastnost flex-wrap prvku |
Verze CSS | CSS3 |
Související stránky
CSS reference: vlastnost flex-wrap
HTML DOM STYLE Reference: vlastnost flex
Odkaz na STYL DOM HTML: vlastnost flexBasis
HTML DOM STYLE Reference: vlastnost flexDirection
Odkaz na STYL DOM HTML: vlastnost flexFlow
HTML DOM STYLE Reference: vlastnost flexGrow
Odkaz na STYL DOM HTML: vlastnost flexShrink
❮ Objekt stylu