针对 Windows Phone 7 Internet Explorer 9 的条件注释
问题
条件注释,例如
<!--[if IEMobile]>
<p>Welcome to Internet Explorer Mobile.</p>
<![endif]-->
<![if !IEMobile]>
<p>All other browsers</p>
<![endif]>
在 Windows Phone 7 上不起作用!或者,至少不是我的。
问题
有谁确切地知道如何使用这些评论,并且之前测试过它们? WP7 上的 IE 9 是否支持此功能?
Problem
Conditional comments, such as
<!--[if IEMobile]>
<p>Welcome to Internet Explorer Mobile.</p>
<![endif]-->
<![if !IEMobile]>
<p>All other browsers</p>
<![endif]>
don't work on Windows Phone 7! Or, at least not on mine.
Question
Does anyone know exactly how to use these comments, and had tested them before? Does IE 9 on WP7 even support this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试使用 gte(如果它显示您的手机为 7.5)
Try using gte (in case it's seeing your phone as 7.5)
很抱歉地说,但以下内容在 Mango 之前曾经有效。
看起来现在您必须使用 JAvaScript 并检查 UserAgent 以查看是否列出了 Windows Phone OS 7 或 Windows Phone OS 7.5...唯一的方法
Im sorry to say but the following used to work before Mango.
It looks like now you would have to use JAvaScript and check the UserAgent to see if Windows Phone OS 7 or Windows Phone OS 7.5 is listed...Only way