이미지처럼 보이는 스크롤바없애기 (스크롤은 가능)
<div class="box">
~~~~~~ scroll text or element
<div>
-ms-overflow-style
코드를 추가해준다. .box {
width: 60%;
height: 60%;
list-style: none;
padding-left: 0;
overflow-y: scroll;
-ms-overflow-style: none;
}
-webkit-scrollbar
도 작성해준다. .box::-webkit-scrollbar {
display: none;
}
스크롤바가 없어졌지만 스크롤은 된다!