让 ie 支持 html5标签

 1  <!--[if lte IE 9]>
2 <style type="text/css">
3 header,nav,aside,menu,figure,article,time,footer{display:block;}
4 </style>
5 <script>
6 (function(){
7 var e = "abbr,article,aside,audio,bb,canvas,datagrid,datalist,details,dialog,eventsource,figure,footer,hgroup,header,mark,menu,meter,nav,output,progress,section,time,video".split(','),
8 i=0,
9 length=e.length;
10 while(i<length){
11 document.createElement(e[i++])
12 }
13 })();
14 </script>
15 <![endif]-->

  

posted @ 2011-09-08 09:56  sirzxj  阅读(157)  评论(0编辑  收藏  举报