What are the compatibility of browsers that you often encounter? How did it show up? What is the workaround?

Source: Internet
Author: User

1.ie6 double margin problem: When using float, double the left and right. Solution: Use Display:inline
2.ie6 devouring phenomenon: up and down two Div, the above div set the background, but found that the following does not set the background of the DIV also has a background. Solution: Use Zoom:1.
3. Comments can also generate bugs. Solution: Use "<!–[if!" Ie]> picrotate Start <! [endif]–> "method to write a comment.
The white leaves under 4.img. Solution: Set Display:block to IMG.
5.ie6 under the absolute positioning of the div contains a relative positioning of the div, if the inner layer relative positioning of the div height height concrete value, the inner layer relative layer will have a width value of 100%, the outer layer will be large. Solution: Give the inner layer a float property relative to the layer.
6.position:fixed, invalid in IE6.
Solution: Add _position:absolute;
_top:expression (eval (document.documentElement.scrollTop))
7. Fixed IE6 vibration: background-attachment:fixed;
8.CSS Hack:ie6 recognizes _,*, IE7 recognizes *,!important, and FF recognizes!important.
9. Browser Kernel style processing
-moz on behalf of the Firefox browser private properties
-ms Code IE browser
-webkit represents Chrome,safari private property
-O stands for Opera kernel

What are the compatibility of browsers that you often encounter? How did it show up? What is the workaround?

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.