奥运五环代码
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<style>
.box1,
.box2,
.box3,
.box4,
.box5{
position: absolute;
width: 100px;
height: 100px;
border: 10px solid black;
border-radius: 50%;
}
.div{
margin:auto;
}
.box1{
border-color: blue;
left: 0;
top: 0;
}
.box2{
border-color: yellow;
left: 130px;
top: 0;
z-index: 1;
}
.box3{
border-color: black;
left: 260px;
top: 0;
}
.box4{
border-color: green;
left: 65px;
top: 65px;
}
.box5{
border-color: red;
left: 195px;
top: 65px;
}
.demo{
position: absolute;
left: 50%;
top: 50%;
margin-top: -97px;
margin-left: -195px;
}
</style>
</head>
<body>
<div class="demo">
<div class="box1"></div>
<div class="box2"></div>
<div class="box3"></div>
<div class="box4"></div>
<div class="box5"></div>
</div>
</body>
</html>