<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> <style> .box { width: 200px; height: 200px; overflow: auto; } .item { width: 100px; height: 500px; background: red; } .box::-webkit-scrollbar { display: none; } </style> </head> <body> <div class="box"> <div class="item">sddddddddddddddddddddddds</div> </div> </body> </html>
谷歌浏览器css 实现隐藏滚动条
最新推荐文章于 2024-07-06 14:50:03 发布