Styl flexWrap Eiendom
Voorbeeld
Maak die buigsame items toedraai indien nodig:
document.getElementById("main".style.flexWrap = "wrap";
Definisie en gebruik
Die flexWrap-eienskap spesifiseer of die buigsame items moet toedraai of nie.
Let wel: As die elemente nie buigsame items is nie, het die flexWrap-eienskap geen effek nie.
Blaaierondersteuning
Property | |||||
---|---|---|---|---|---|
flexWrap | Yes | 11.0 | Yes | 9.0 | Yes |
Sintaksis
Gee die flexWrap-eienskap terug:
object.style.flexWrap
Stel die flexWrap-eienskap:
object.style.flexWrap = "nowrap|wrap|wrap-reverse|initial|inherit"
Eiendomswaardes
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 |
Tegniese besonderhede
Standaard waarde: | nourap |
---|---|
Terugkeerwaarde: | 'n String, wat die flex-wrap-eienskap van 'n element voorstel |
CSS weergawe | CSS3 |
Verwante bladsye
CSS verwysing: flex-wrap eiendom
HTML DOM STYL Verwysing: flex eiendom
HTML DOM STYL Verwysing: flexBasis eiendom
HTML DOM STYLE Verwysing: flexDirection eiendom
HTML DOM STYL Verwysing: flexFlow eiendom
HTML DOM STYLE Verwysing: flexGrow eiendom
HTML DOM STYLE Verwysing: flexShrink eiendom
❮ Stylvoorwerp