Monday 7 July 2014

HTML5 support for IE below IE9



Add an HTML5 Shim


Before we leave the of this document, there’s one last thing I’d like to add, and this will come just after the CSS for the bootstrap-responsive. Put a little extra space here inside of your and add the following code:
1
2
3
4
<!-- HTML5 shim for IE backwards compatibility -->
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
You’ll see that we have a little snippet of code here, which is an HTML 5 shim. This is a particular piece of JavaScript that’s available at Googlecode.com. It’s designed to help provide backwards compatibility in older Internet Explorer browsers which, if you’ve been developing for very long, will know the ubiquitous Microsoft IE requires special attention. This shim itself is not a part of Bootstrap, but it will help make your websites more compatible with old Internet Explorer browsers, and you can just drop this right into your Bootstrap document right before your closing </head>.

No comments:

Post a Comment