Compatible with the layout of IE6, IE7, and IE8 series!

Source: Internet
Author: User

Some time ago, I made a front-end homepage in the company and found that the HTML page prepared by the artist was added to the ASPX page.ProgramIn ie5, 6, and 7, there is a gap. It is normal in IE8, and I don't know why. After the program runs, checkSource codeAnd no problem, which makes me very depressed!

 

This is the effect of browsing in ie5, IE6, and IE7:

 

This is the effect in IE8 and is normal:

Some enthusiastic netizens said: Try adding the Attribute Overflow: hidden to the CSS of each layer (with an interval ).

Our artist uses the table layout. I have added overflow: hidden to all table labels and TB labels!

 

A netizen said:

Try one of the following:
1. Remove the hard carriage return between two divs or other labels with gaps. For example:
<Div> </div>
<Div> </div>
Change
<Div> </div>

2. Add font-size: 0px, line-Height: 0px, margin: 0, and border: 0 to related labels.
Parent container with padding: 0;

 

 

The first method is used to solve the problem!

 

 

On the my ASPX page, <TD> </TD> when the page is opened with DW, it is clearly displayed that there is a space behind the tag <TD> </TD>. If you delete the file, the space will not be displayed in! As long as the document is formatted in Vs and opened with DW, there will be spaces! I am speechless for such a small problem!

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.