我已经创建了一个与nodejs集成的响应式网站,它可以在所有设备上正常运行.
但是在Windows Phone IE浏览器中,网页没有向下滚动,我不知道是什么导致了这一点.
/*css*/ @media (max-width: 400px) { @-ms-viewport { width: 320px; } } /*js*/ if (navigator.userAgent.match(/IEMobile\/10\.0/)) { var msViewportStyle = document.createElement("style"); msViewportStyle.appendChild(document.createTextNode("@-ms-viewport{width:auto!important}")); document.getElementsByTagName("head")[0].appendChild(msViewportStyle); }
响应性在Windows Phone上存在一些问题,因此我使用上述代码补丁来解决问题.但滚动问题仍然存在,有人知道如何解决这个问题吗?