티스토리 뷰
반응형
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 |
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 아파트매매
- 출산
- 세금
- 카뱅
- 고금리
- php
- 부동산
- 혜택
- 적금
- 내집마련
- 카카오뱅크
- 안과
- 재테크
- 신혼부부
- 투자
- 정부
- 2026
- 안드로이드
- 대출
- 금융
- remove
- etf
- 앱테크
- 연말정산
- 주담대
- 우회
- ubuntu
- 공제
- 해외주식
- 지도
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
글 보관함