Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
IE6 fixes for Twitter Bootstrap v2
Branch: master
Pull request Compare This branch is 9 commits ahead of guoguo:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
bootstrap.css
bootstrap.js
ie6.css
ie6.js
ie6.js.coffee
ie6.min.css
ie6.min.js
jquery-1.7.1.min.js
readme.md
sample-typeahead.html

readme.md

IE6 fixes for Twitter BootStrap v2

This work is based on the initial work of Jonathon Joyce (http://www.jonathonjoyce.co.uk/2012/02/02/twitter-bootstrap2-ie-compatibility-fixes/)

Make sure when using this to use conditional IE statements in your HTML (just BEFORE the </head> tag), eg:

<!--[if IE 6]>

<link href="ie6.min.css" rel="stylesheet">

<![endif]-->

Again, use a browser conditional statement to include the ie6.min.js if IE or add the following after all the JS on the page, ideally just before the </body> tag:

<script type="text/javascript"> $(function(){if($.browser.msie&&parseInt($.browser.version,10)===6){$('.row div[class^="span"]:last-child').addClass("last-child");$('[class="span"]').addClass("margin-left-20");$(':button[class="btn"], :reset[class="btn"], :submit[class="btn"], input[type="button"]').addClass("button-reset");$(":checkbox").addClass("input-checkbox");$('[class^="icon-"], [class=" icon-"]').addClass("icon-sprite");$(".pagination li:first-child a").addClass("pagination-first-child")}}) </script>

There is a sample page - sample-typeahead.html

Sharry @ Empowering Communities

Copyright Twitter 2011 http://twitter.github.com/bootstrap/

Something went wrong with that request. Please try again.