CSS coding for solving IE6 3 pixel bug

Source: Internet
Author: User

As long as the haslayout of IE is triggered, non-floating elements have a layout. Therefore, you can fix this problem by using the hack rule unique to IE6 to write a style for it separately:
_ ZOOM: 1;
Margin-left: value;
_ Margin-left: value-3px;

Zoom is one of the layout conditions triggered by IE, because it is a CSS rule unique to IE, so Zoom is used.
Margin-left: The value-3px is a bug that fixes 3px in IE6.
Previously we used the non-floating element floating Method to fix bugs. Now we can try this new method!
Note: The underline above is specially written to the hack version earlier than IE7!

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.