html - :hidden helps div grow in the html css below?如何溢出

标签 html css


<div id='container' >

   <div id='content' > </div>
   <div id='rightPane' > </div>

</div>


在上面的结构中,content 和 rightPane 是容器 div 的子元素。它们包含内容,并且随着内容的增加而扩展高度,但容器 div 不会随之扩展。我想知道它的原因。另外我想知道当我应用溢出:隐藏到容器时它开始扩展子 div 中的内容。当我们将 overflow:hidden 应用到容器父 div 时会发生什么。

最佳答案

希望这对你有帮助..

http://www.quirksmode.org/css/overflow.html

关于html - :hidden helps div grow in the html css below?如何溢出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9596462/

相关文章:

html - 将按钮和文本放在同一行,文本位于按钮中心

javascript - 如何将 JavaScript 对象导出为 JavaScript?

html - 包装表不显示 bg 图像

javascript - 为什么我的 DIV 不会更改为显示 ='none'(onclick JavaScript)?

html - 防止导航菜单换行

html - 汉堡菜单 css 游标

javascript - Three.js 皮毛 - 不加载任何东西

css - Wordpress - GeneratePress 主题 - 缓存破坏

html中心对齐不起作用

html - CSS使颜色偏向两侧