[제이쿼리/jQuery] 문서 / 윈도우 관련 기능


[제이쿼리/jQuery] 문서 / 윈도우 관련 기능

문서 크기 구하기$(document).width()$(document).height()전체 화면 크기 구하기screen.widthscreen.height웹브라우저에서 제공하는 Screen 객체의 width/height 프로퍼티에는 모니터 해상도 정보가 담겨있다.유효한 전체 화면 크기 구하기screen.availWidthscreen.availHeight운영체제의 작업 표시줄 영역이 제외된 크기다.윈도우의 위치 및 크기 관련 기능기본 크기 구하기window.innerWidthwindow.innerHeight기본크기 + 메뉴바 + 툴바$(window).width()$(window).height()기본크기 + 메뉴바 + 툴바 + 스크롤바window.outerWidthwindow.outerHeight윈도우 크기 설정window.resizeTo(width,height)윈도우 리사이징 이벤트 처리..........



원문링크 : [제이쿼리/jQuery] 문서 / 윈도우 관련 기능