是否有可能在CSS或JavaScript中瞄准Windows 8模式下的IE10 ?

Is it possible to target IE10 in Windows 8 Mode in CSS or JavaScript?

本文关键字:模式 Windows IE10 有可能 CSS JavaScript 是否      更新时间:2023-09-26

我注意到IE10在Windows 8模式和桌面模式下运行时,与使用Viewport Units的大小有关的渲染差异。

简而言之,大众单位在win8模式下的大小是IE10桌面模式下的两倍。

是否有任何已知的方法可以在Win8模式下瞄准浏览器?

有新的条件注释吗?

也许这会有帮助:

<script>
if(window.Windows){
 document.documentElement.setAttribute("metro", true);
}
</script>
<style>
         body { color: blue; }
 [metro] body { color: red; }
</style>