解决IE兼容的方法

来源:互联网 发布:node.js高级编程 编辑:程序博客网 时间:2024/06/05 06:52
IE 7.JS 是一个用来使老式IE浏览器(IE 5,IE 6)符合WEB标准的JavaScript 库,来解决 IE 的兼容性问题。 他还能解决PNG图片透明效果在IE5,IE6 下不能正常显示的问题。使用方法:使 IE 5,IE 6 兼容到 IE 7 模式(推荐)    <!–[if lt IE 7]>    <script src=”http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE7.js” type=”text/javascript”></script>    <![endif]–>使 IE 5,IE 6,IE 7 兼容到 IE 8 模式    <!–[if lt IE 8]>    <script src=”http://ie7-js.googlecode.com/svn/version/2.0(beta3)/IE8.js” type=”text/javascript”></script>    <![endif]–>解决PNG显示问题只需将透明png图片命名为*-trans.png需要注意的是:此方法对背景平铺(background-repeat)和背景(background-position)无法起到任何作用。官方网址: http://code.google.com/p/ie7-js/演示地址: http://ie7-js.googlecode.com/svn/test/index.html附:解决IE8兼容问题,将IE 8 降为IE 7 模式方法    <meta http-equiv=“X-UA-Compatible” content=“IE=EmulateIE7″ />         引用地址:http://www.biaodianfu.com/jiejue-ie6-jianrong-wenti-ie7js.html