23aside元素与nav元素上

来源:互联网 发布:sql语句中case when 编辑:程序博客网 时间:2024/05/19 16:34
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="utf-8">
<title>aside</title>
<style type="text/css">
body{height:708px;}
header{width:100%;height:10%;background:green;}
footer{width:100%;height:10%;background:blue;}
section{width:100%;height:80%;}
aside{width:20%;height:80%;background:red;float:left}
#div4{width:80%;height:100%;background:yellow;float:left}
nav{width:100%;height:50%;background:gray;float:left}
hgroup{width:100%;height:40%;background:blue;float:left}
</style>
</head>
<body>
<header>header
<hgroup>hgroup
</hgroup>
<nav>nav</nav>
</header>
<aside>
aside可以定义侧边栏;用于定义article元素之外的内容,
前提是与article里的主体内容相关,
同时可以嵌套在article元素内部使用,作为与主内容相关的参考资料,名词解释
</aside>
<section>
<div id="div4" >section</div>
</section>
<footer>footer</footer>
</body>
</html>