Windows phone 8 IE 10 Windows Phone响应重定向循环

Windows phone 8 IE 10 Windows Phone响应重定向循环,windows-phone-8,responsive-design,internet-explorer-10,Windows Phone 8,Responsive Design,Internet Explorer 10,我已经使用Twitter引导程序使我的网络状态响应,而在我的手机Lumia 920上,它不起作用。我在JavaScript中找到了一个解决方案: (function() { if ("-ms-user-select" in document.documentElement.style && navigator.userAgent.match(/IEMobile\/10\.0/)) { var msViewportStyle = document.creat

我已经使用Twitter引导程序使我的网络状态响应,而在我的手机Lumia 920上,它不起作用。我在JavaScript中找到了一个解决方案:

(function() {
    if ("-ms-user-select" in document.documentElement.style && 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);
    }
})();
但是我的电脑上有重定向循环(这个脚本应该只在IE10手机上运行)。问题在于:

document.createTextNode("@-ms-viewport{width:auto!important}")
因为如果我评论这句话,一切都很好,但是。。。在IE手机上响应。 我在CSS中添加了:

@-ms-viewport{
    width: device-width;
}