Internet explorer 重定向IE7浏览器,但不重定向windows phone 7

Internet explorer 重定向IE7浏览器,但不重定向windows phone 7,internet-explorer,redirect,windows-mobile,Internet Explorer,Redirect,Windows Mobile,然而,我无法调试和测试Windows7手机 我有以下代码 <!--[if lte IE 7]><meta http-equiv="refresh" content="0; url=/index_ie.html" /><script type="text/javascript"><![CDATA[ window.top.location = "/index_ie.html";]]></script><![endif]-->

然而,我无法调试和测试Windows7手机 我有以下代码

<!--[if lte IE 7]><meta http-equiv="refresh" content="0; url=/index_ie.html" /><script type="text/javascript"><![CDATA[ window.top.location = "/index_ie.html";]]></script><![endif]-->

有没有办法排除windows mobile browser触发此重定向?

他的windows phone具有IE mobile 7,因此lte IE7评估为true并触发重定向是有意义的。你可以试试这个:

<!--[if !IEMobile]>
<![if lte IE 7]>      
...
<![endif]>
<![endif]-->

更多想法请参见此处:以及

<!--[if !IEMobile]>
<![if lte IE 7]>      
...
<![endif]>
<![endif]-->