使用<!––[if IE]>语句添加升级提示,如 判断当前浏览器是否IE6(或IE6内核) <!––[if IE 6]>你使用的是IE6浏览器,这是IE的过时版本,是时候升级了!<![endif]––> 判断当前浏览器是否IE7及如下版本 <!--[if lte IE 7]>这段文字只会在IE7及(IE7/IE6/IE5等)如下版本显示<![endif]--> 判断是否IE <!––[if IE]>你正在使用的是IE浏览器<![endif]––> 应用实例(使用方法:添加在网站头部代码</head>以前) IE8及如下版本提示升级 <!--[if lte IE 8]><script>window.location.href='http://cdn.dmeng.net/upgrade-your-browser.html?referrer='+location.href;</script><![endif]--> IE7及如下版本提示升级 <!--[if lte IE 7]><script>window.location.href='http://cdn.dmeng.net/upgrade-your-browser.html?referrer='+location.href;</script><![endif]--> IE6及如下版本提示升级 <!--[if lte IE 6]><script>window.location.href='http://cdn.dmeng.net/upgrade-your-browser.html?referrer='+location.href;</script><![endif]-->