<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>新增结构属性</title>
<style>
*{
margin: 0;
padding: 0;
}
.box{
width: 800px;
background-color: aquamarine;
margin: 0 auto;
text-align: center;
}
header{
width: 100%;
height: 40px;
background-color: bisque;
/* text-align: center; */
line-height: 40px;
}
nav{
width: 100%;
height: 30px;
background-color: rgb(47, 201, 33);
/* text-align: center; */
line-height: 30px;
}
.main{
width: 800px;
height: 600px;
background-color: aqua;
}
aside{
width: 200px;
height: 100%;
background-color: blueviolet;
float: left;
}
article{
width: 600px;
height: 100%;
background-color: red;
float: left;
}
footer{
width: 100%;
height: 50px;
background-color: brown;
}
</style>
</head>
<body>
<div class="box">
<!-- 头部 -->
<header>header头部</header>
<nav>nav导航部分 头部和主题中间的部分</nav>
<div class="main">
<aside>aside边侧栏</aside>
<article>article 独立内容部分</article>
</div>
<footer>
footer 底部
</footer>
</div>
</body>
</html>
H5新增属性
最新推荐文章于 2024-09-09 13:46:41 发布