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