Home  >  Article  >  Web Front-end  >  获取浏览器可视区域、屏幕的宽和高_html/css_WEB-ITnose

获取浏览器可视区域、屏幕的宽和高_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:41:461454browse

document.documentElement.clientWidth:取得浏览器页面可视区域的宽度document.documentElement.clientHeight:取得浏览器页面可视区域的高度screen.width:取得屏幕宽度screen.height:取得屏幕高度screen.availWidth:取得除任务栏外的屏幕宽度screen.availHeight取得除任务栏外的屏幕高度

 

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn