2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-05-30 15:24:08 +03:00

fixes #10497: Fix Windows 8 and Windows Phone 8 behavior and apply it to the docs

This commit is contained in:
Mark Otto
2013-09-11 14:46:31 -07:00
parent 37933a9e08
commit 2dc7ab4bbb
5 changed files with 38 additions and 26 deletions
+15
View File
@@ -6,6 +6,21 @@
$(function(){
// IE10 viewport hack for Surface/desktop Windows 8 bug
//
// See Getting Started docs for more information
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);
}
var $window = $(window)
var $body = $(document.body)