<!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>

让IE浏览器支持HTML5

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

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

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

 让IE浏览器支持HTML5

相关文章:

  • 2021-12-18
  • 2022-01-30
  • 2022-12-23
  • 2021-10-30
  • 2022-12-23
  • 2021-09-24
  • 2022-01-11
  • 2021-12-02
猜你喜欢
  • 2021-08-11
  • 2021-11-22
  • 2021-11-10
  • 2021-09-03
  • 2021-07-29
相关资源
相似解决方案