zoukankan      html  css  js  c++  java
  • html5新增标签及兼容

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>    </title>
    <script>
    document。createElement("header");
    document.createElement("article");
    document.createElement("aside");
    document.createElement("section");
    document.createElement("footer");
    </script>
    <style>
    body{margin:0;}
    header{height: 100px; background: #9F3; display: block;}
    article{padding:10px; background: #CF6; overflow: hidden; zoom:1; position: relative; display: block;}
    section{margin-left:210px; background:#F90; height:300px;  800px; position: absolute; left: 10px;top: 10px; display: block;}
    aside{200px; height:300px; background: #F90; height:300px; display: block;}
    footer{height:100px; background: #C6C; display: block;}
    </style>
    </head>
    <body>
        <header>页面头部部分</header>
    <article>
      <aside>侧边栏</aside>
      <section>内容区域</section>
    </article>
    <footer>内容部分</footer>
    </body>
    </html>

    兼容ie 6 7 8

  • 相关阅读:
    Dictionary用法详解
    List与IList的区别
    接口
    C# List<T>用法详解
    c#FileStream文件读写
    学习如何用VS2010创建ocx控件
    sql server零碎知识
    BinaryWriter和BinaryReader用法
    通讯录源程序分析
    美丽说
  • 原文地址:https://www.cnblogs.com/hack-ing/p/6239969.html
Copyright © 2011-2022 走看看