js get the screen height

document.body.clientWidth ==> BODY width of the object
document.body.clientHeight ==> BODY height of the object
document.documentElement.clientWidth ==> vue visible region width using
document.documentElement.clientHeight / window.innerHeight ==> highly visible region vue use (applies to get the phone does not include a section on the bar)
 
document.body.offsetWidth ==> the visible area of the page width (including the edges of wide)
document.body.offsetHeight ==> high visible area of the page (including the edges high)
the Document .body.scrollWidth ==> full text pages wide document.body.scrollHeight ==> text pages GAO
document.body.scrollTop ==> web is rolled to a high
document.body.scrollLeft ==> the web is wound to left
window.screenTop ==> page on the body of
window.screenLeft ==> page body parts left
window.screen.height ==> high-resolution screen
height window.screen.width ==> screen available work area
window.screen .availHeight ==> screen available workspace height
window.screen.availWidth ==> available workspace screen width

Guess you like

Origin www.cnblogs.com/zouwangblog/p/10984105.html