Home > Web Front-end > HTML Tutorial > Get the browser's visible area, screen width and height_html/css_WEB-ITnose

Get the browser's visible area, screen width and height_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:41:46
Original
1511 people have browsed it

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

 

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template