Html5浏览器支持

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>文章来源地址https://www.yii666.com/article/764289.html文章地址https://www.yii666.com/article/764289.html网址:yii666.com<网址:yii666.com文章来源地址:https://www.yii666.com/article/764289.html

</html>
 
 
 
 这是最基本的,后续更新!

版权声明:本文内容来源于网络,版权归原作者所有,此博客不拥有其著作权,亦不承担相应法律责任。文本页已经标记具体来源原文地址,请点击原文查看来源网址,站内文章以及资源内容站长不承诺其正确性,如侵犯了您的权益,请联系站长如有侵权请联系站长,将立刻删除

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信图片_20190322181744_03.jpg

微信扫一扫打赏

请作者喝杯咖啡吧~

支付宝扫一扫领取红包,优惠每天领

二维码1

zhifubaohongbao.png

二维码2

zhifubaohongbao2.png