#parent{
height: 100%;
width: 100%;
overflow: hidden;
}
#child{
width: 100%;
height: 100%;
overflow-y: scroll;
padding-right: 17px; /* Increase/decrease this value for cross-browser compatibility */
box-sizing: content-box; /* So the width will be 100% + 17px */
}
隐藏滚动条,但仍然能够滚动
猜你喜欢
转载自blog.csdn.net/qq_34122822/article/details/98487082
今日推荐
周排行