강의

멘토링

커뮤니티

Inflearn Community Q&A

daep93's profile image
daep93

asked

Interactive Development Practice End [Capacity Enhancement]

Page changes based on scroll position - scroll event

outerheight/2가 생각했던 전체 창 크기의 절반보다 컸던 이유

Written on

·

277

4

outerheight가 전체 창크기라고 알려주셨는데 검색창이랑 제목표시줄까지 포함하는 창이였구요. 실제 브라우저에서 CSS가 보이는 화면을 포함하는 창의 크기는 innerheight였습니다. 저처럼 헷갈리시는 분이 있으실까봐 공유합니다.

[javascript] 윈도우 창 크기 (window.outerWidth, window.outerHeight, window.outerHeight, window.innerWidth, innerHeight) - 종종 올리는 블로그 (tistory.com)

인터랙티브-웹javascript

Answer 1

0

coding11님의 프로필 이미지
coding11
Instructor

이런. 디테일을 놓쳤네요. 감사합니다.

daep93's profile image
daep93

asked

Ask a question