39,084
社区成员
发帖
与我相关
我的任务
分享
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style type="text/css">
.box {
position: relative;
}
.main {
position: absolute;
left: -480px;
margin-left: 50%;
width: 960px;
height: 720px;
background-color: #ff0;
}
.l {
position: absolute;
left: 0px;
right: 480px;
margin-right: 50%;
width: auto;
height: 500px;
background-color: #f00;
}
.r {
position: absolute;
right: 0px;
left: 480px;
margin-left: 50%;
width: auto;
height: 500px;
background-color: #f00;
}
</style>
</head>
<body>
<div class="box">
<div class="l"></div>
<div class="main"></div>
<div class="r"></div>
</div>
</body>
</html>