Home > Web Front-end > JS Tutorial > body text

jQuery gets the resolution implementation code in the browser_jquery

WBOY
Release: 2016-05-16 17:35:48
Original
1337 people have browsed it
Copy code The code is as follows:



Web page visible area width: document.body.clientWidth
Web page visible area height : document.body.clientHeight
The width of the visible area of ​​the web page: document.body.offsetWidth (including the width of the edge)
The height of the visible area of ​​the web page: document.body.offsetHeight (including the height of the edge)
Full text of the web page Width: document.body.scrollWidth
Height of the full text of the webpage: document.body.scrollHeight
The height of the scrolled webpage: document.body.scrollTop
The left side of the scrolled webpage: document.body.scrollLeft
Top of the main body of the web page: window.screenTop
Left of the main body of the web page: window.screenLeft
Height of the screen resolution: window.screen.height
Width of the screen resolution: window.screen.width
Screen available workspace height: window.screen.availHeight
Related labels:
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!