您的網站上的代碼添加到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