Test results of IE7 and IE8 compatibility

Source: Internet
Author: User

The latest projects require full compatibility with IE6 and later versions. There is no way to test several requirements in different versions:

 

The first one is text breaking, because by default, the content in the table will be squashed infinitely to achieve the effect. You need to use style to open it.

Style = "word-break: Keep-all; white-space: nowrap" word-break: Keep-all attributes are said to be only supported by IE, and the project needs to display complete characters, I had to use it. If the browser is ineffective, let's talk about it. In the first place, many of the effects I used in IE8 went back to the prototype in IE7. I searched the internet for a long time and tried some more, now. In Internet Explorer 8, only word-break: Keep-all can be used to achieve the effect. In Internet Explorer 7, the link between Chinese and English is disconnected, my method is to add another property white-space: nowrap!

 

The second is correct identification of JS

This is a very serious mistake I have made. I can only post it for your attention.

 

Function A () {var A = 1; var B = 2; var c = ""; C = a + B; alert (C ),}

Note that C defines the string type, so C returns 12;

Another IE8 will ignore the symbol error at the end of the method by default, but IE7 will report an error or change it to; or simply do not have a good symbol, who can leave JS without adding it;

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.