首页 > 技术文章 > 双飞翼布局(练习)

mrluobiao 2017-04-19 22:48 原文

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
body{
margin: 0;
padding: 0;
}
.bigbox .one {
margin: 0 200px 0 300px;
background: red;
height: 500px;
}
.bigbox .two {
background: blue;
width: 300px;
height: 500px;
position: absolute;
left: 0px;
top: 0;
}
.bigbox .three {
background: pink;
width: 200px;
height: 500px;
position: absolute;
right: 0;
top: 0;
}
</style>
</head>
<body>
<div class="bigbox">
<div class="one"></div>
<div class="two"></div>
<div class="three"></div>
</div>
</body>
</html>

推荐阅读