1 Star 0 Fork 11

tudoukuai/H5API

forked from 小强/H5API 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
01 兼容性.html 915 Bytes
一键复制 编辑 原始数据 按行查看 历史
小强 提交于 2019-08-28 13:20 . h5 API
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
header, footer, nav, section, article {
width: 200px;
height: 200px;
margin: 10px;
background-color: pink;
display: block;
}
</style>
<!-- 2. 但是创建标签的方式太麻烦,我们此时用一个js文件包, 就可以解决ie低版本不认识html5标签的难问题了 -->
<!-- 条件注释 ie 6.7.8 能执行,其余浏览器忽略这句话 -->
<!--[if lt IE 9]>
<script src="js/html5shiv.min.js"></script>
<![endif]-->
</head>
<body>
<!-- 1.想要ie低版本能够认识 html5 新标签 创建标签的方式 -->
<!-- <script>
document.createElement("header"); // 创建 header标签
document.createElement("footer"); // 创建 footer
</script> -->
<header>123</header>
<footer>abc</footer>
<nav>123</nav>
<section>bbc</section>
<article>123</article>
</body>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/tudoukuai/H5API.git
git@gitee.com:tudoukuai/H5API.git
tudoukuai
H5API
H5API
master

搜索帮助