gpt4 book ai didi

css - 宽度不在 IE11 中换行

转载 作者:太空宇宙 更新时间:2023-11-04 06:33:57 25 4
gpt4 key购买 nike

如果 IE11 宽度不合适。在 Chrome 的情况下,宽度是正确的并且内容被包裹。在 Chrome 中没有滚动条,但在 IE11 中内容没有换行。

预期:不应该有滚动条

   .modal-scroll-panel{
position:static;
overflow:auto;
margin:auto;
max-width:772px!important;
max-height:532px!important;
}
.width-class{
width:55%;
}
.parent{
display:flex;
width:100%;
flex-flow:column wrap;
}
.parent > .item-1{
display:flex;
flex-direction:column;
width:100%;
}
.parent > .item-1 > .child-1{
flex:none;
width :100%;
}
    <div class = "modal-scroll-panel">
<table>
<tbody>
<tr>
<td class ="width-class">
<div class = "parent">
<div class = "item-1">
<div "child-1">
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
</div>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</div>

最佳答案

flex-wrap 不适用于 IE 上的 width: 100%。例如,如果您将其更改为 max-width:772px,它将起作用。

.parent{
display:flex;
max-width:772px;
flex-flow:column wrap;
}

关于css - 宽度不在 IE11 中换行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54400854/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com