![](https://i-blog.csdnimg.cn/blog_migrate/fa58fee0e76f9b1ca88ee2d9b3311a93.png)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
/* 需要滚动条隐藏的列表 */
.list-view {
width: 100px;
height: 100px;
overflow-x: hidden;
overflow-y: auto;
background-color: yellow;
}
/* 隐藏滚动条 */
.list-view::-webkit-scrollbar {
display: none;
}
/* 没有进行隐藏滚动条的列表 */
.list-view-no {
width: 100px;
height: 100px;
overflow-x: hidden;
overflow-y: auto;
background-color: red;
}
</style>
</head>
<body>
<p>隐藏滚动条的列表:</p>
<div class="list-view">
<div>1234567890</div>
<div>1234567890</div>
<div>1234567890</div>
<div>1234567890</div>
<div>1234567890</div>
<div>1234567890</div>
<div>1234567890</div>
<div>1234567890</div>
</div>
<p>没有隐藏滚动条的列表:</p>
<div class="list-view-no">
<div>1234567890</div>
<div>1234567890</div>
<div>1234567890</div>
<div>1234567890</div>
<div>1234567890</div>
<div>1234567890</div>
<div>1234567890</div>
<div>1234567890</div>
</div>
</body>
</html>