2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-05 16:42:29 +03:00

Merge pull request #13390 from twbs/ie10-viewport-bug

add IE10 viewport bug workaround to examples
This commit is contained in:
Mark Otto
2014-04-24 18:50:30 -07:00
24 changed files with 86 additions and 14 deletions
-14
View File
@@ -14,20 +14,6 @@
$(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.querySelector('head').appendChild(msViewportStyle)
}
var $window = $(window)
var $body = $(document.body)