JS position attribute Offsetleft,offsettop,scrollleft,scrolltop etc Test

Source: Internet
Author: User

Have been on these several properties, a little vague, today there is time, a good look.

On the online predecessors wrote about this blog link:

http://blog.csdn.net/wgw335363240/article/details/5580654

http://blog.csdn.net/fswan/article/details/17238933

After looking at a few, a little understand, or personally test it better, practice is the only standard to test the truth. Hey!!

Here is the demo I wrote. 650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/43/78/wKiom1PbNgWBHhnJAAQCp8N5U4U941.jpg "title=" Qq20140801141053.jpg "alt=" Wkiom1pbngwbhhnjaaqcp8n5u4u941.jpg "/> This demo list, JS's common location attributes, you can drag and zoom elements, to observe the changes in the value of each property.


Below is the attachment download!!

This article is from the "Xbhacker" blog, make sure to keep this source http://6087379.blog.51cto.com/6077379/1533746

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.