zoukankan      html  css  js  c++  java
  • 让IE浏览器支持HTML5

    <!DOCTYPE html>
    <html lang="zh">
    <head>
        <meta charset="UTF-8">
        <title>html5标签</title>
        <style>
    .head{background: red;}
    .footer{background: blue;}
        </style>
    
        
    </head>
    <body>
        <header class="head">我是header</header>
        <footer class="footer">我是footer</footer>
    </body>
    </html>

    header和footer是html5的块元素,但是旧版的ie并不支持,要支持的方法可以在head中加入

    <!--[if IE]>
    <script src="html5.js"></script>
    <![endif]-->

    js地址:http://html5shiv.googlecode.com/svn/trunk/html5.js

     

  • 相关阅读:
    decltype类型指示符
    vector的使用
    参数使用
    CSPS模拟 43
    CSPS模拟 41
    CSPS模拟 42
    NOIP模拟 40
    NOIP模拟 39
    NOIP模拟 38
    NOIP模拟 37
  • 原文地址:https://www.cnblogs.com/tinyphp/p/4782406.html
Copyright © 2011-2022 走看看