解決ie8下h5元素兼容性的問題

  • <header>定義頁面或區段的頭部;
  • <footer>定義頁面或區段的尾部;
  • <nav>定義頁面或區段的導航區域;
  • <section>頁面的邏輯區域或內容組合;
  • <article>定義正文或一篇完整的內容;
  • <aside>定義補充或相關內容;

Ⅰ. javascript

<!--[if lt IE 9]> 
<script> 
   (function() {
     if (! 
     /*@cc_on!@*/
     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(', ');
     var i= e.length;
     while (i--){
         document.createElement(e[i])
     } 
})() 
</script>
<![endif]-->

  

<!--[if lt IE 9]> 
<script>
(function() {
if (!
/*@cc_on!@*/
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(', ');
var i= e.length;
while (i--){
document.createElement(e[i])
}
})()
</script>
<![endif]-->
相關文章
相關標籤/搜索