css部分,把网页内置的滚动条隐藏
html,
body {
overflow: hidden;
height: 100%;
margin: 0;
}
#wrap {
position: relative;
height: 100%;
}
#chute {
position: absolute;
width: 17px;
height: 100%;
right: 0;
top: 0;
background-color: bisque;
}
#scrollbar {
position: absolute;
width: 15px;
height: 50px;
top: 0;
left: 1px;
background-color: aqua;
}
#content {
position: absolute;
width: calc(100% - 17px);
height: 100%;
}
只有三个部分,内容区,滚动