gpt4 book ai didi

html - 修复没有最小高度的溢出

转载 作者:行者123 更新时间:2023-11-28 19:10:57 26 4
gpt4 key购买 nike

我在 here 部分尝试了一切来修复文本溢出问题.但我不想使用 min-height 修复它,因为我不知道最终的高度是多少。任何指导将不胜感激!

enter image description here

最佳答案

添加显示:flex;和 flex 方向:列; .home-hiw 类的属性。

  .home-hiw {
background: #E9E8E8;
width: 100%;
min-height: 600px;
padding: 15px 0;
margin-bottom: 15px;
display: flex; /*change dispay block to display flex */
flex-direction:column; /*add flex direction */
position: relative;
overflow: hidden;
}

我希望这是你所期待的: enter image description here

关于html - 修复没有最小高度的溢出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59336187/

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