您的网站上的代码添加到index.html或index.php文件
其工作也Joomla和WordPress的。
<!--[if IE 5]>
<script language="Javascript">
<!--
alert ("It looks like you aren't using Internet Explorer 7. To see our site correctly, please update.")
//-->
</script>
<![endif]-->
<!--[if IE 5.0]>
!--
alert ("It looks like you aren't using Internet Explorer 7. To see our site correctly, please update.")
//-->
</script>
<![endif]-->
<!--[if IE 5.5]>
!--
alert ("It looks like you aren't using Internet Explorer 7. To see our site correctly, please update.")
//-->
</script>
<![endif]-->
<!--[if IE 6]>
!--
alert ("It looks like you aren't using Internet Explorer 7. To see our site correctly, please update.")
//-->
</script>
<![endif]-->
<!--[if IE 7]>
!--
alert ("It looks like you aren't using Internet Explorer 7. To see our site correctly, please update.")
//-->
</script>
<![endif]-->
<!--[if IE 8]>
!--
alert ("It looks like you aren't using Internet Explorer 8. To see our site correctly, please update.")
//-->
</script>
<![endif]-->
这个工具正好适合这份工作;用它。 – Jon 2012-04-06 14:28:02
这太严格了,你忽略了这个世界上约40%的访问者 – Rodolfo 2012-04-06 14:28:23
@Rodolfo如果他阻止访问他们,那么他是。但是,如果他只是显示一条标语消息或模式,说'你的浏览器已过时,请升级',那么它只会有所帮助。我怀疑大多数IE用户完全理解浏览器是什么。 – 2012-04-06 14:29:40