Summary of quirks of different browsers

Source: Internet
Author: User

1. When setting div top, left must be set together. Otherwise, the object disappears, indicating that the layer postion is set to fixed.

Document. getElementById ("mydiv"). style. top = 10 + "px ";

Document. getElementById ("mydiv"). style. left = 10 + "px ";

This problem is not solved in chrome testing.



2. Obtain the height and width of the part being viewed on the page.

Ie8can only use document.doc umentElement. Height/Width

Chrome can use window. innerHeight/innerEidth or



3. mouse pointer

You can add a url to the custom mouse pointer under IE. cursor: url ("move. cur ");

Add autocursor: url ("move. cur"), auto;



4. Dynamic Output in the javascript Address Bar (when any webpage is opened, enter javascript: void (function () {}) () in the address bar to execute a piece of code)

For example, if you want to output a layer to write document. write directly, nothing will be displayed.

You can only use var obj = document. createElement ("div ");

Obj. style settings

Related Article

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.