相关疑难解决方法(0)

带溢出的div上的滚动条:自动和百分比高度

是否可以创建一个调整到浏览器大小的div,也可以滚动?我想用overflow:autodiv和百分比高度90%.

页面的结构是

<body style="height:100%">
<div id=header style="height:100%">headerinfo</div>
<div id=content style="height:100%;overflow:auto">content which is replaced dynamically</div>
</body>
Run Code Online (Sandbox Code Playgroud)

将overflow:auto工作没有已知px的某处层次结构中的高度?

html height scroll overflow percentage

7
推荐指数
1
解决办法
2万
查看次数

标签 统计

height ×1

html ×1

overflow ×1

percentage ×1

scroll ×1