方法一 :css
一、使用靜態資源的html5shiv包html
<!--[if lt IE9]> html5
<script src="http://cdn.static.runoob.com/libs/html5shiv/3.7/html5shiv.min.js"></script>瀏覽器
<![endif]-->ide
二、載入後,初始化新標籤的cssspa
header, section, footer, aside, nav, main, article, figure { display: block; }code
方法二:cdn
IE6/IE7/IE8支持經過document方法產生的標籤,利用這一特性讓這些瀏覽器支持HTML5新標籤htm