本文介绍了如何为不同版本的IE显示不同的页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何检测IE 6,IE 7和IE8,并说如果其中任何一个显示不同的页面而不是索引。

I was wondering how can I detect IE 6, IE 7 and IE8 and say if any of these show different page instead of index.

像update.html这样的东西就好了。

Something like update.html would be just fine.

我见过这些IF IE6和东西,但仅限CSS而非索引页。

I have seen these IF IE6 and stuff but only for CSS not for index page.

提前致谢。

推荐答案

试试这个HTML代码:

Try this HTML code:

<html>
<body>
<!--[if IE]>
<script language="javascript">
document.location = "http://www.google.com/";
</script>
<![endif]-->
redirects to google if IE
</body>
</html>

这篇关于如何为不同版本的IE显示不同的页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-14 21:37
查看更多