谷歌瀏覽器css 實現隱藏滾動條

<!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>
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章