aboutsummaryrefslogtreecommitdiff
path: root/getting-started.html
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-08-06 17:40:33 -0700
committerMark Otto <[email protected]>2013-08-06 17:40:33 -0700
commitab79b4ac2defa9c9d86cc208ee203871f18af642 (patch)
treefddac501b523634e880ea34235a97e0e3df8e2f8 /getting-started.html
parentf3bf32ffc51c1bafd60f5704a638fc56cf464386 (diff)
parent167753273adbe944fac615025ff52ac89d36221d (diff)
downloadbootstrap-ab79b4ac2defa9c9d86cc208ee203871f18af642.tar.xz
bootstrap-ab79b4ac2defa9c9d86cc208ee203871f18af642.zip
Merge branch '3.0.0-wip' into bs3_third_party_support_docs
Diffstat (limited to 'getting-started.html')
-rw-r--r--getting-started.html23
1 files changed, 23 insertions, 0 deletions
diff --git a/getting-started.html b/getting-started.html
index 26787ab34..480931f3b 100644
--- a/getting-started.html
+++ b/getting-started.html
@@ -149,6 +149,29 @@ bootstrap/
<meta http-equiv="X-UA-Compatible" content="IE=edge">
{% endhighlight %}
<p>See <a href="http://stackoverflow.com/questions/6771258/whats-the-difference-if-meta-http-equiv-x-ua-compatible-content-ie-edge">this StackOverflow question</a> for more information.</p>
+
+ <h3>Windows Phone 8 and Internet Explorer 10</h3>
+ <p>Internet Explorer 10 doesn't differentiate device width from viewport width, and thus doesn't properly apply the media queries in Bootstrap's CSS. To address this, you can optionally include the following CSS and JavaScript to work around this problem until Microsoft issues a fix.</p>
+{% highlight css %}
+@-webkit-viewport { width: device-width; }
+@-moz-viewport { width: device-width; }
+@-ms-viewport { width: device-width; }
+@-o-viewport { width: device-width; }
+@viewport { width: device-width; }
+{% endhighlight %}
+
+{% highlight 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);
+}
+{% endhighlight %}
+ <p>For more information and usage guidelines, read <a href="http://timkadlec.com/2013/01/windows-phone-8-and-device-width/">Windows Phone 8 and Device-Width</a>.</p>
</div>