Text in a flex container doesn't wrap in IE11

后端 未结 12 2008
自闭症患者
自闭症患者 2020-11-22 05:23

Consider the following snippet:

12条回答
  •  故里飘歌
    2020-11-22 05:31

    I had the same issue and the point is that the element was not adapting its width to the container.

    Instead of using width:100%, be consistent (don't mix the floating model and the flex model) and use flex by adding this:

    .child { align-self: stretch; }
    

    Or:

    .parent { align-items: stretch; }
    

    This worked for me.

提交回复
热议问题