我想要隐藏那个红色标记的滚动元素,但滚动条应该就在那里!
答案 0 :(得分:0)
<div class="parent">
<div class="child">
</div>
</div>
Css
.parent{
position: relative;
width: 300px;
height: 150px;
border: 1px solid black;
overflow: hidden;}
.child{
height: 150px;
width: 318px;
overflow-y: scroll;
}
相应地应用css