Technology sharing how IE7.JS solves IE compatibility issues

Source: Internet
Author: User

This article focuses on how to use IE7.JS to solve IE compatibility issues. IE7.JS is a JavaScript library used to make the old IE browser (IE5, IE6) conform to WEB standards to solve IE compatibility issues. It can also solve the problem that the transparent effect of PNG images cannot be displayed normally under IE5 or IE6.

IE7.JS solves IE compatibility issues

IE7.JS is a JavaScript library used to make the old-fashioned IE browser (IE5, IE6) Comply with WEB standards to solve IE compatibility issues. It can also solve the problem that the transparent effect of PNG images cannot be displayed normally under IE5 or IE6.

Usage:

Recommended to make IE5 and IE6 compatible with the IE7 Mode)

 
 
  1. <!–[ifltIE7]> 
  2. <scriptsrcscriptsrc=
  3. ”http://ie7-js.googlecode.com/svn/version/2.0  
  4. (beta3)/IE7.js”type=”text/javascript”> 
  5. </script> 
  6. <![endif]–> 

Make IE5, IE6, and IE7 compatible with IE8 Mode

 
 
  1. <!–[ifltIE8]> 
  2. <scriptsrcscriptsrc=  
  3. ”http://ie7-js.googlecode.com/svn/version/2.0(beta3)  
  4. /IE8.js”type=”text/javascript”> 
  5. </script> 
  6. <![endif]–> 
  7.  

IE7.JS solves PNG display problems

You only need to name the transparent png image as * -trans.png
Note that this method does not play any role in background-repeat and background-position.

Http://code.google.com/p/ie7-js/
Demo address: http://ie7-js.googlecode.com/svn/test/index.html

Appendix: Solutions for IE8 compatibility, and methods for downgrading IE8 to IE7

 
 
  1. <metahttp-equivmetahttp-equiv=“X-UA-Compatible”
  2. content=“IE=EmulateIE7″/> 
  3.  

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.