screen.width
画面幅
screen.height
画面高
screen.availWidth
有効画面幅
screen.availHeight
有効画面高
window.innerWidth
表示領域幅(IE非対応)
window.innerHeight
表示領域高(IE非対応)
window.outerWidth
ウィンドウ幅(IE非対応)
window.outerHeight
ウィンドウ高(IE非対応)
$(window).width()
表示領域幅
$(window).height()
表示領域高
document.documentElement.clientWidth
表示領域幅
document.documentElement.clientHeight
表示領域高
document.width
表示領域幅(IE非対応)
document.height
表示領域高(IE非対応)
$(document).width()
ドキュメント幅
$(document).height()
ドキュメント高
More than 5 years have passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme