div本身是没有任何的含义
div:作用就是把网页进行模块化的划分
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style>
.top{
height:100px;
width:100%;
background-color: bisque;
}
.tips{
height: 50px;
width:100%
background-color: burlywood;
}
.center{
height: 1000px;
width: 100%;
background-color: red;
}
.bottom{
height: 50px;
width: 100%;
}
.login{
height: 600px;
width: 350px;
background-color: beige;
/* 相对定位 */
position: relative;
left: 1800px;
top:80px;
}
</style>
</head>
<body>
<!-- 头部模块 -->
<div class="top"></div>
<!-- 中间提示 -->
<div class="tips"></div>
<!-- 中间展示 -->
<div class="center">
<div class="login">
</div>
</div>
<!-- 底部模块 -->
<div class="bottom"></div>
</body>
</html>