2012-04-04 58 views
1

我不能调试和测试Windows 7的手机,但是 我有下面的代码重定向IE7浏览器,但无法在Windows Phone 7的

<!--[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听说电话,它有这个代理:

Mozilla/4.0 (compatible; MSIE 7.0; Windows Phone OS 7.0; Trident/3.1; IEMobile/7.0) 

有没有办法来排除Windows手机浏览器触发此重定向?

回答

相关问题