Let's say I have a display: inline
container with some text children, and some inline-block
children:
If I give the container the following CSS... (and change inline-block
to inline-flex
)
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-items: center;
... then it treats the text element as an entire element of its own and wraps the whole thing, rather than breaking it up.
Is there a "flexbox" way of achieving this, or do I really have to fall back to display inline?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…