在最外层的div样式上设置 overflow 属性,如下代码所示:
<div class="body">
最外层容器
</div>
.body {
position: fixed;
width: 100%;
height: 100%;
overflow: scroll;
}
在最外层的div样式上设置 overflow 属性,如下代码所示:
<div class="body">
最外层容器
</div>
.body {
position: fixed;
width: 100%;
height: 100%;
overflow: scroll;
}