IE6.0升级的两种通用代码

时间:2023-07-17 16:49:56

随着W3C组织开始针对新的Web标准提案日期的到来,HTML5以及CSS3的新时代即将到来,同时微软的Win8以及IE10的出现也带给了这个世界奇妙的结构。

微软早在不再给WinXP做技术支持时,IE6就在那一刻消亡,但准确的说,IE6存在的Bug对用户来说安全性无法得到安全保障!在微软全力推新版IE10的同时,也极力支持大家停止使用技术落后的IE6,并建议用新版IE或其它浏览器代替,如Google Chrome!

以下是微软官方提供的提示升级IE6的代码:

<!--[if lt IE 7]> <div style=' clear: both; height: 100px; padding:0 0 0 15px; position: relative;'> <a href="http://windows.microsoft.com/en-US/internet-explorer/products/ie/home?ocid=ie6_countdown_bannercode"><img src="http://storage.ie6countdown.com/assets/100/images/banners/warning_bar_0025_chinese_hong_kong.jpg" border="0" height="42" width="820" alt="You are using an outdated browser. For a faster, safer browsing experience, upgrade for free today." /></a></div> <![endif]-->

随着网络的发展,IE浏览器已经慢慢进化变的完美,追求完美的网页设计人员设计的网页不再针对IE6兼容。以下是简洁的另一种提示升级代码:

<!--[if lte IE 6]> <script src="http://letskillie6.googlecode.com/svn/trunk/letskillie6.zh_CN.pack.js"></script><![endif]-->