HTML5 浏览器支持
把 HTML5 元素定义为块级元素
语义块级displayblock实例
header, section, footer, aside, nav, main, article, figure { display: block; }
向 HTML 添加新元素
<myHero>实例
<!DOCTYPE html>
<html>
<head>
<title>Creating an HTML Element</title>
<script>document.createElement("myHero")</script>
<style> myHero { display: block; background-color: #ddd; padding: 50px; font-size: 30px; } </style>
</head>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
<myHero>My First Hero</myHero>
</body>
</html>
document.createElement("myHero")
完整的 Shiv 解决方案
实例
<!DOCTYPE html>
<html>
<head>
<title>Styling HTML5</title>
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
</head>
<body>
<h1>My First Article</h1>
<article>
London is the capital city of England.
It is the most populous city in the United Kingdom,
with a metropolitan area of over 13 million inhabitants.
</article>
</body>
</html>
这是最基本的,后续更新!