简体   繁体   English

检测7-9个桌面版本(没有Windows Phone)

[英]Detect ie 7-9 desktop versions (without ie in windows phone)

I have that code: 我有该代码:

<!--[if IE 7]>
<script type="text/javascript">window.location.href="/sites/all/themes/infood/ie/ie.html"</script>
<![endif]-->
<!--[if IE 8]>
<script type="text/javascript">window.location.href="/sites/all/themes/infood/ie/ie.html"</script>
<![endif]-->
<!--[if IE 9]>
<script type="text/javascript">window.location.href="/sites/all/themes/infood/ie/ie.html"</script>
<![endif]-->

But when i try load site page in windows phone 7, load only ie.html becouse version is ie9 但是当我尝试在Windows Phone 7中加载网站页面时,仅加载ie.html,因为版本为ie9

So how it's fix up 那么如何解决

是否不可能在所有情况下都返回/sites/all/themes/infood/ie/ie.html?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM