您的位置:首页 > Web前端 > HTML5

html5对于IE6的兼容性问题

2016-03-27 19:53 609 查看
当不兼容时 要考虑js。

<!DOCTYPE html>

<html lang="en">

<head>
<meta charset="UTF-8">
<title>html5兼容性</title>
<script type="text/javascript" src="jquery-1.12.1.js">
/*document.createElement("header");
document.createElement("section");
document.createElement("footer");*/
</script>
<style type="text/css">
header{
width: 200px;
height: 200px;
background-color: red;
display: block;
}
section{
width: 150px;
height: 150px;
background-color: blue;
display: block;
}
footer{
width: 100px;
height: 100px;
background-color: green;
display: block;
}
</style>

</head>

<body>
<header>header</header>
<section>section</section>
<footer>footer</footer>

</body>

</html>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: