mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-03-22 15:30:23 +00:00
commit
bc89c06b6c
2 changed files with 5 additions and 5 deletions
|
|
@ -228,13 +228,13 @@ bootstrap/
|
|||
|
||||
{% highlight js %}
|
||||
if (navigator.userAgent.match(/IEMobile\/10\.0/)) {
|
||||
var msViewportStyle = document.createElement("style");
|
||||
var msViewportStyle = document.createElement("style")
|
||||
msViewportStyle.appendChild(
|
||||
document.createTextNode(
|
||||
"@-ms-viewport{width:auto!important}"
|
||||
)
|
||||
);
|
||||
document.getElementsByTagName("head")[0].appendChild(msViewportStyle);
|
||||
)
|
||||
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>
|
||||
|
|
|
|||
|
|
@ -588,7 +588,7 @@ $('body').scrollspy({ target: '#navbar-example' })
|
|||
{% highlight js %}
|
||||
$('[data-spy="scroll"]').each(function () {
|
||||
var $spy = $(this).scrollspy('refresh')
|
||||
});
|
||||
})
|
||||
{% endhighlight %}
|
||||
|
||||
|
||||
|
|
@ -731,7 +731,7 @@ $('#myTab li:eq(2) a').tab('show') // Select third tab (0-indexed)
|
|||
|
||||
<script>
|
||||
$(function () {
|
||||
$('#myTab a:last').tab('show');
|
||||
$('#myTab a:last').tab('show')
|
||||
})
|
||||
</script>
|
||||
{% endhighlight %}
|
||||
|
|
|
|||
Loading…
Reference in a new issue