Ie6 compatibility issue record and ie6 compatibility record

Source: Internet
Author: User

Ie6 compatibility issue record and ie6 compatibility record

1. In the code, the em line feed will cause a blank space. Remove the spaces between em tags without line breaks.
2. Use margin to set a negative value to solve the neighborhood of the module in ie6.
3. How to clear the float: Add overflow: hidden to the parent element.
4. several Block-level elements in ie6, such as div and span, are not set to float, some are set to float right, and the width of a row is enough to put down all block-level elements, however, ie6 will display a line break of the right float.
* Two parts of code can be exchanged.
Disadvantage: Destroy Semantics
* Absolute positioning.
Advantage: No semantics is damaged.
Disadvantage: The amount of code is increased.

* Add float to all of them.
Advantage: Same as above.
Disadvantage: other bugs may occur.
.
* Add hack. _ Margin-top: XXXXpx;
Advantage: Same as above.
Disadvantage: hack is used.

5. In ie6, when the sub-elements of li are known as the display: block style, it will result in white between li and add _ display: inline to li.

6. If a contains the space-time white part of the row element, the click is invalid. Solution: Add a background color to.

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.