gpt4 book ai didi

html - IE 11 Flexbox 子容器溢出

转载 作者:行者123 更新时间:2023-11-28 12:28:32 25 4
gpt4 key购买 nike

<分区>

我整理了以下示例。它适用于所有主流浏览器,但不适用于 IE11。内容 div 溢出了 flex 容器(没有滚动条)并将页脚向下推。有什么建议么?

html,
body {
padding: 0;
margin: 0;
}

.c1 {
border: 1px solid blue;
display: flex;
flex-direction: column;
max-width: 500px;
max-height: 100px;
}

.h,
.f {
flex: 0 0 auto;
}

.b {
border: 1px solid red;
flex: 1 1 auto;
overflow: auto;
}
<div class="c1">
<header class="h">header</header>
<div class="b">What is Lorem Ipsum? 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>
<footer class="f">footer</footer>
</div>

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