• 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>
    </html>
     
     
     
     这是最基本的,后续更新!
  • 相关阅读:
    1.3、python内置类型(0529)
    1.2、Python快速入门(0529)
    1.1、Python快速入门(0529)
    mini Linux制作过程(25/01)
    samba基本应用24-4及示例
    Apache+Php+Mariadb+NFS+discuz
    U盘中病毒了怎么办
    bind9安装配置
    负载均衡的实现(1)
    MySQL之优化
  • 原文地址:https://www.cnblogs.com/lihaolh/p/6744808.html
Copyright © 2020-2023  润新知