题解 | #定位 - relative#
定位 - relative
http://www.nowcoder.com/practice/c940df050f3645529df374e3e1c1994e
<html>
<head>
<meta charset=utf-8>
<style type="text/css">
* {
margin: 0;
padding: 0;
}
.left {
width: 100px;
height: 100px;
background-color:blue;
}
.center {
width: 100px;
height: 100px;
position: relative;
left: 50px;
top: 50px;
background-color:pink;
}
.right {
width: 100px;
height: 100px;
}
</style>
</head>
<body>
<div class="left"></div>
<div class="center"></div>
<div class="right"></div>
</body>
</html>