其实很简单
在设置overflow-y: scroll;容器外在套一个盒子 设置 overflow: hidden;
.message-list{
overflow: hidden;
height: 70%;
width: 100%;
}
然后设置要滚动的容器
width: 100%;
height: 100%;
overflow-x: hidden;
overflow-y: scroll;
这样就OK了
其实很简单
在设置overflow-y: scroll;容器外在套一个盒子 设置 overflow: hidden;
.message-list{
overflow: hidden;
height: 70%;
width: 100%;
}
然后设置要滚动的容器
width: 100%;
height: 100%;
overflow-x: hidden;
overflow-y: scroll;
这样就OK了