Resolves conflicts between ie5, IE6, and IE7 and W3C standards (ie7.js ie8.js)

Source: Internet
Author: User
If you use ie5, IE6, and IE7 to browse the same webpage, the effect may be different.
This is because the CSS resolution selector is different between them or is caused by errors and individual bugs. To solve these errors and bugs.
We have to find a solution that balances them.

For example, if the PNG transparency issue cannot be displayed in ie5 or IE6, we may use CSS hack or introduce external JavaScript. For example, the method I mentioned previously used with pngfix is to call external JavaScript to solve the PNG transparency problem in ie5 and IE6. Of course there are more methods.

Now there is a more perfect method that is compatible with CSS selector parsing of ie5, IE6, and IE7. That is: IE7-js

IE7-JS is a javascript library that resolves conflicts between IE and W3C standards. This makes Microsoft Internet Explorer behave like a web-compatible browser, supports more W3C standards and css2 and css3 selectors. It fixes many HTML and CSS problems and makes transparent PNG correctly displayed under ie5 and IE6.

The current IE7-js version: 2.0 beta 3

Usage:
Directly reference the JS file on the Google Code server.

Ie7.js
Upgrade ie5 and IE6 to IE7 compatibility
Note that Internet Explorer versions earlier than 7 are loaded into thisCode.

Code "/> program code <! -- [If lt IE 7]>
<SCRIPT src = "HTTP [color = #0080c0]: // ie7-js.googlecode.com/svn/version/2.0 (beta3)/ie7.js" Type = "text/JavaScript"> </SCRIPT>
<! [Endif] --> [/color]

Ie8.js
Enable ie5, IE6, and IE7 to support more W3C standards (fixed many HTML and CSS problems ).
Note that Internet Explorer versions earlier than 8 are used to load the code, while other compliant browsers ignore the code and do not interfere with the work after IE8 is released.

Code "/> program code <! -- [If lt IE 8]>
<SCRIPT src = "HTTP [color = #0080c0]: // ie7-js.googlecode.com/svn/version/2.0 (beta3)/ie8.js" Type = "text/JavaScript"> </SCRIPT>
<! [Endif] --> [/color]

PNG
This script only fixes the image name: * -trans.png
Unfortunately, the transparent PNG images in this method cannot be tiled (repeatedly) used on the background, nor be used on the CSS "position" positioning attribute.

In addition to directly referencing JS files on Google Code servers, if you want to, you can also download and introduce
2.0 beta 3 page: http://ie7-js.googlecode.com/svn/version/2.0 (beta3) /
:
ie7.js http://ie7-js.googlecode.com/svn/version/2.0 (beta3)/ie7.js
ie8.js http://ie7-js.googlecode.com/svn/version/2.0 (beta3)/ie8.js
Demo:
http://ie7-js.googlecode.com/svn/test/index.html

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.