JS Get wide Height

Source: Internet
Author: User

Offsetwidth is the actual width of the element, including the width of the edge (Width+padding+border)

Offsetheight is the actual height of the element, including the height of the Edge (Height+padding=border)

ScrollWidth is the width of the actual content, the body width

ScrollHeight is the height of the actual content, the body height

ClientWidth width of visible area, excluding scroll bars and borders

ClientHeight height of visible area, excluding scroll bars and borders

Document.body.scrollTop Web page is rolled away high (height+padding)

Document.body.scrollLeft Web page is rolled away left (width+padding)

Window.screentop the body part of the Web page

Window.screenleft page body part left

Wnidwo.screen.height High Screen resolution

Window.screen.width width of the screen resolution

Window.screen.availHeight screen available working area height

Window.screen.availWidth screen available Work area width

ClientTop gets the border width of the object

ClientLeft gets the border width of the object

ClientHeight get visible content degree of loneliness (excluding scroll bars, borders)

JS Get wide Height

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.