gpt4 book ai didi

HTML/CSS : Make a wrapper extend to fit the height of its children

转载 作者:太空宇宙 更新时间:2023-11-03 23:58:18 25 4
gpt4 key购买 nike

我正在制作一个网站。所有内容都存储在包装器 DIV 中。内容 DIV 具有分配给它的边框样式。

我希望包装 DIV 的高度足以容纳其内容,因此边框会延伸到页面末尾。

我认为这会默认发生,因为 height:auto是所有元素的默认值。

这是我的 page .

感谢您提供的任何帮助。

最佳答案

只需制作包装 div 样式

overflow: auto

关于HTML/CSS : Make a wrapper extend to fit the height of its children,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17857090/

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