61,112
社区成员
发帖
与我相关
我的任务
分享
<!DOCTYPE HTML>
<html>
<head>
<style type="text/css">
html,body{
margin: 0px;
padding: 0px;
height: 100%;
}
.center{
background-color: red;
width: 1000px;
height: 100%;
position: absolute;
right: 50%;
margin-right: -500px;
z-index: 3;
}
.right{
background-color: blue;
width: 100%;
height: 100%;
position: absolute;
right: 0px;
margin-left: 50%;
z-index: 2;
}
.left{
background-color: blue;
width: 100%;
height: 100%;
position: absolute;
left: 0px;
margin-right: 50%;
z-index: 2;
}
</style>
</head>
<body>
<div class="right"></div>
<div class="center"></div>
<div class="left"></div>
</body>
</html>