Google's ie9.js ie8.js ie7.js resolves conflicts between IE5, IE6, IE7, and IE8 and W3C standards

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-jsie7-js is a JavaScript Library (a JS library that resolves conflicts between IE and W3C standards ), make Microsoft's Internet Explorer act like a Web-compatible browser. It 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. At present, this ie7-js version: 2.0 beta 3 usage: directly reference the js file on the Google Code server. <! -- [If lt IE 7]> <script src = http://www.bkjia.com/uploads/allimg/131201/01450241F-0.png "; </script> <! [Endif] --> <! -- [If lt IE 8]> <script src = http://www.bkjia.com/uploads/allimg/131201/0145025Y5-1.png "; </script> <! [Endif] --> <! -- [If lt IE 9]> <script src = http://www.bkjia.com/uploads/allimg/131201/01450253O-2.png "; </script> <! [Endif] --> IE7.js: Upgrade IE5 and IE6 to IE7 compatibility, so that Internet Explorer versions earlier than IE7 can load the code. <! -[If lt IE 7]> <script src = "http://ie7-js.googlecode.com/svn/version/2.0 (beta3)/IE7.js" type = "text/javascript"> </script> <! [Endif]-> IE8.js enables 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. <! -[If lt IE 8]> <script src = "http://ie7-js.googlecode.com/svn/version/2.0 (beta3)/IE8.js" type = "text/javascript"> </script> <! [Endif]-> make the png statement transparent. <script src = "IE8.js"> IE7_PNG_SUFFIX = ". png "; </script> E7.js is a JavaScript library to make Microsoft Internet Explorer behave like a standards-compliant browser. it fixes upgrade HTML and CSS issues and makes transparent PNG work correctly under IE5 and IE6.StatusCurrent version: 2.1 beta4.UsageIE7. jsUpgrade MSIE5.5-6 to be compatible with MSIE7! -- [If lt IE 7]> <script src = "http://ie7-js.googlecode.com/svn/version/2.1 (beta4)/IE7.js"> </script> <! [Endif] --> IE8.jsUpgrade MSIE5.5-7 to be compatible with MSIE8! -- [If lt IE 8]> <script src = "http://ie7-js.googlecode.com/svn/version/2.1 (beta4)/IE8.js"> </script> <! [Endif] --> You do not need to include IE7.js if you are using IE8.jsIE9. jsUpgrade MSIE5.5-8 to be compatible with modern browsers! -- [If lt IE 9]> www.2cto.com <script src = "http://ie7-js.googlecode.com/svn/version/2.1 (beta4)/IE9.js"> </script> <! [Endif] --> You do not need to include IE7/IE8.js if you are using IE9.jsPNGThe script only fixes images named: * -trans.png If you want the fix to apply to all PNG images then set a global variable as follows: var IE7_PNG_SUFFIX = ". png "; You must set this variable before including the IE7.js script. alternatively, you can set the variable inside the IE7.js script element: <script src = "IE8.js"> IE7_PNG_SUFFIX = ". png "; </script> The suffix will ignore query string parameters. for more fine-grained control you can also set IE7_PNG_SUFFIX to a RegExp object. if you want to use an alternative PNG solution then set the suffix to something that cannot possibly match: var IE7_PNG_SUFFIX = ":"; By default, the PNG will be stretched (this simulates tiling ). if you want to turn this off then set the no-repeat property as follows: div. example {background: url(my-trans.png) no-repeat;} Unfortunately, the transparent background image cannot be tiled (repeated) using background-repeat. nor can it be positioned using background-position.

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.