我做了下面的例子,但它不起作用。
<div class="wrapper">
<header></header>
<div class="content">
<div class="sub_content">
<article>
<section id="sub_description">some text<br/></section>
</article>
<div class="sub_right floatright"></div>
<div class="clearfix"></div>
</div>
</div>
<footer></footer>
</div>
http://jsfiddle.net/x2x3s7o5/1/
我不希望文章采用固定高度。我想占据父容器的全高。但滚动条不起作用。 谁能建议我任何解决方案?
最佳答案
http://jsfiddle.net/x2x3s7o5/2/
尝试从类 .content
中删除 overflow: hidden
并添加 overflow:scroll
关于html - div 无法以高度 :auto 滚动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28191906/