Let IE6/7/8 also supports HTML5 tag way

Recommended for you: Get network issues from WhatsUp Gold. Not end users.

Method 1: introducing Google HTML5.js online file

1 <!–[if lt IE9]> 
2 <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
3 <![endif]–>

Mode two: Custom

 1 <script> 
 2    (function() {
 3      if (! 
 4      /*@cc_on!@*/
 5      0) return;
 6      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(', ');
 7      var i= e.length;
 8      while (i--){
 9          document.createElement(e[i])
10      } 
11 })() 
12 </script>

At the same time, CSS custom defined as follows:

1 article,aside,dialog,footer,header,section,footer,nav,figure,menu{display:block}

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download

Posted by 007 at December 14, 2013 - 2:15 AM