HTML5 has been popular for a long time, do not study html5+css3 really some difficult, today first from the most basic introduction, let IE family old-timers can know HTML5 new label. Front-end resource sharing
1. Add code to the page
. Code
- <!--[If LT IE 9]>
- <script src="Http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
- <! [endif]-->
2. Define CSS code (Important)
. Code
- article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section {display:block;}
This JS file original content is very small, it may now update the version of the code to increase the amount. Specific differences in where I did not scrutiny, post the original code. Should still be available. Front-end resource sharing
. Code
- (function () {if (!/*@[email protected]*/0 ) Return;var e = "abbr, Article,aside,audio,canvas,datalist,details,dialog,eventsource,figure,footer,header,hgroup,mark,menu,meter,nav , Output,progress,section,time,video ". Split (", ' ), i= E.length;while (i--) {document.createelement (E[i])}}) ()
A friend of yours to take it. Can be placed directly on the page. Note The second step, however, to define the Display:block attribute on the HTML5 tag.