Text in a flex container doesn't wrap in IE11

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

Consider the following snippet:

12条回答
  •  长发绾君心
    2020-11-22 05:39

    The proposed solutions did not help me with ".child {width: 100%;}", since I had more complicated markup. However, I found a solution - remove "align-items: center;", and it works for this case too.

    .parent {
      display: flex;
      flex-direction: column;
      width: 400px;
      border: 1px solid red;
      /*align-items: center;*/
    }
    .child {
      border: 1px solid blue;
    }
    Lorem Ipsum is simply dummy text of the printing and typesetting industry
    Lorem Ipsum is simply dummy text of the printing and typesetting industry

提交回复
热议问题