반응형
I just played with this CodePen and it seems that if you set the background-color to transparent for all three properties below (and in this example also remove box-shadows), the scrollbar is not visible at all:
#style-1::-webkit-scrollbar-track {
// -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.1);
background-color: transparent;
}
#style-1::-webkit-scrollbar {
background-color: transparent;
}
#style-1::-webkit-scrollbar-thumb {
// -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
background-color: transparent;
}
This was tested in Chrome Desktop, Chrome for Android, and iOS Safari (v8.4) on an iPhone 6+.
I would however recommend for user experience (usability/accessibility) to keep the scrollbar visible though, as even I, knowing what I was doing, got a bit confused when there was no scrollbar.
반응형
'웹프로그래밍 > CSS' 카테고리의 다른 글
Vertical scrolling in iOS not smooth (0) | 2020.07.08 |
---|---|
iphone X 웹뷰 safe-area-inset 관련 (0) | 2020.07.08 |
안드로이드 웹뷰 스크롤바 안보일 때 (Android Webview scrollbar not visible, div overflow auto, scroll case) (0) | 2020.06.25 |
ios mobile 에서 터치시 background 색상 들어가는 문제 (0) | 2017.03.07 |
구글 Noto 한국어 글꼴을 웹에서 마음껏! (0) | 2016.05.24 |