<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document2</title>
<style>
* {
margin: 0;
padding: 0;
}
.content {
width: 980px;
margin: 0 auto;
}
.top {
height: 20px;
background-color: #FF4400;
}
.mainbody {
width: 9;
height: 780px;
background-color: rgb(255, 208, 0);
position: relative;
line-height: 780px;
text-align: center;
color: #fff;
font-size: 50px;
}
.left {
width: 750px;
height: 220px;
line-height: 220px;
text-align: center;
background-color: #000;
color: #fff;
position: absolute;
left: 0;
top: 0;
}
.right {
position: absolute;
height: 100%;
width: 200px;
background-color: green;
right: 0;
top: 0;
}
.bottom {
height: 20px;
background-color:blueviolet;
}
</style>
</head>
<body>
<div class="content">
<div class="top">头部</div>
<div class="mainbody">
mainbody
<div class="left">left</div>
<div class="right">right</div>
</div>
<div class="bottom">版权部分</div>
</div>
</body>
</html>