【发布时间】:2016-11-02 10:49:21
【问题描述】:
我有一个块,其中有一个图像和另一个块。
父块有display:flex,使图片和子块站成一排。
子块也有display:flex,但它形成了一个由段落和标题组成的列。
http://codepen.io/anon/pen/qNmYRq
.summary__testimonial{
display: -ms-flexbox;
display: flex;
padding-bottom: 120px;
padding-top: 35px;
max-width: 100%;
}
.summary__testimonial-right{
display: -ms-flexbox;
display: flex;
-ms-flex-direction:column;
flex-direction:column;
box-sizing: border-box;
max-width: 100%;
-ms-flex-negative:1;
flex-shrink:1;
-ms-flex-pack:center;
justify-content:center;
width: auto;
}
问题是文本段落在IE 10中溢出了他的父母。
我尝试设置max-width:100%、width:auto、box-sizing:border-box,将flex-shrink 的值更改为1 和0。
如果你在 IE 10 中打开它,它仍然会溢出,或者变成一行,你很可能在 codepen 中看到它。
有什么方法可以让它在 IE 10 中看起来和在普通浏览器中一样?
【问题讨论】:
标签: html css flexbox internet-explorer-10