2015-02-08 36 views

回答

1

使用conditional comments,您只能對特定版本的IE執行代碼。例如,以下內容會將IE9重定向到您網站上的頁面並顯示錯誤消息。

<!--[if lte IE 9]> 
<script>window.location.replace('http://example.com/no-ie.html'); 
<![endif]--> 
+0

你是英雄!謝謝! – Going4Quests 2015-02-08 19:50:08