用css实现如何使滚动条隐藏但是溢出时有滚动的效果

<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <style>
        .d1{
            width:200px;
            height: 200px;
            border:1px solid red;
            overflow: hidden;
        }
        .d2{
            width: 230px;
            height: 200px;
            overflow: auto;
        }
        .d3{
            width: 200px;
            height: 300px;
        }
    </style>
</head>
<body>
<div class="d1">
    <div class="d2">
        <div class="d3">ddddddddfffffffffff</div>
    </div>
</div>
</body>
</html>
展开阅读全文

没有更多推荐了,返回首页