웹 퍼블리싱/JS & 웹개발 지식
Javascript 해상도에 따른 이벤트 설정 / 윈도우 창 크기 구하기
꼬지비
2020. 12. 30. 11:27
window.innerWidth + 창틀, 스크롤 크기 = window.outerWith
window.innerHeight + 창틀, 스크롤 크기 = window.outerHeight
100vh 는 window.innerHeight
스크롤 이벤트 생성
if( (screen.width > 992) ){
} }) |
창크기 변경시 이벤트 생성
if( (screen.width > 992) ){
} }) |