繁体   English   中英

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

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

我有该代码:

<!--[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]-->

但是当我尝试在Windows Phone 7中加载网站页面时,仅加载ie.html,因为版本为ie9

那么如何解决

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

暂无
暂无

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

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