让该死的IE支持HTML5 --- html5shiv
让该死的IE支持HTML5
直接代码:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <!-- 在这里引入html5shiv --> <!--[if lt IE 9]> <script src="html5shiv.min.js"></script> <![endif]--> <style> article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section {display:block} </style> </head> <body> <header> <h1>如何使用html5shiv</h1> <p>引入html5shiv后就可以愉快地让IE6-9支持html5新元素了!</p> </header> </body> </html>