ie9以下浏览器支持html5方法

在head部分加入以下代码


<!--[if lt IE9]> 
<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]-->


这样可以解决部分不兼容问题

原文链接: ie9以下浏览器支持html5方法 版权所有,转载时请注明出处,违者必究。
注明出处格式:流年不会忘却 ( https://www.liunianer.com/post-37.html )

0则回应给“ie9以下浏览器支持html5方法”