- document.body.clientWidth ==> BODY object width
- document.body.clientHeight ==> BODY object height
- document.documentElement.clientWidth ==> visible area width
- document.documentElement.clientHeight ==> visible area height
- The width of the visible area of the web page: document.body.clientWidth
- The visible area of the web page is high: document.body.clientHeight
- The width of the visible area of the web page: document.body.offsetWidth (including the width of the border)
- The height of the visible area of the web page: document.body.offsetHeight (including the height of the edge)
- The full text width of the page body: document.body.scrollWidth
- The height of the full text of the page body: document.body.scrollHeight
- The height of the page being scrolled: document.body.scrollTop
- The left side of the page is scrolled: document.body.scrollLeft
- On the body of the page: window.screenTop
- The left part of the body of the webpage: window.screenLeft
- The height of the screen resolution: window.screen.height
- The width of the screen resolution: window.screen.width
- Screen available workspace height: window.screen.availHeight
- Screen available workspace width: window.screen.availWidth
- // some jQuery functions
- $(window).height() //The height of the visible area of the lower window in the browser
- $(document).height() //The height of the window document under the browser
- $(document.body).height() //The height of the window document body under the browser
- $(document.body).outerHeight( true ) //The total height of the body of the lower window document in the browser, including border padding margin
- $(window).width() //The width of the visible area of the lower window in the browser
- $(document).width() //The width of the window document under the browser is for the image width
- $(document.body).width() //The height of the body of the window document under the browser
- $(document.body).outerWidth( true ) //The total width of the body of the window document in the browser, including border padding
- HTML precise positioning: scrollLeft, scrollWidth, clientWidth, offsetWidth
- scrollHeight: Get the scroll height of the object.
- scrollLeft: Sets or gets the distance between the left edge of the object and the leftmost edge of the currently visible content in the window
- scrollTop: Sets or gets the distance between the top of the object and the top of the visible content in the window
- scrollWidth: Get the scroll width of the object
- offsetHeight: Get the height of the object relative to the layout or the parent coordinate specified by the parent coordinate offsetParent property
- offsetLeft: Gets the calculated left position of the object relative to the canvas or parent coordinates specified by the offsetParent property
- offsetTop: Gets the calculated top position of the object relative to the canvas or parent coordinates specified by the offsetTop property
- event.clientX is the horizontal coordinate relative to the document
- event.clientY vertical coordinate relative to the document
- event.offsetX is the horizontal coordinate relative to the container
- event.offsetY vertical coordinate relative to the container
- document.documentElement.scrollTop vertical scroll value
- event.clientX+document.documentElement.scrollTop relative to the horizontal coordinates of the document + the amount of scrolling in the vertical direction
js to get the height of the visible area of the web page screen
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=325544278&siteId=291194637
Recommended
Ranking