有没有办法使用条件注释来定位Windows Mobile 7.5浏览器?

tim*_*kay 6 html internet-explorer windows-mobile windows-phone-7

我试图在Windows Mobile 7.5上定位IE浏览器.任何人都可以告诉我,如果

<!--[if lt IE <mobile browser>]> <include retina display> <[end if]--> 
Run Code Online (Sandbox Code Playgroud)

条件注释语法样式适用于Windows Mobile?

编辑:感谢下面的评论,我找到了一个解决方案.The <!--[if IEMobile]> <[end if]-->语法适用于Windows Mobile 7,但我无法使其适用于Windows Mobile 7.5.因为我构建不需要桌面设备上的我可以用一个通用的展示以及移动网站<!--[if gt IE 7]>评论说,围绕我的两次渲染之间遇到的问题得到.

如果那里的任何人有一个更优雅的解决方案,因为需要桌面支持而无法工作,我很乐意听到它.

小智 1

可能这对你有用

<!--[if IEMobile]>
...
<![endif]-->
Run Code Online (Sandbox Code Playgroud)