<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>五环</title>
<style>
div{
width:100px;
height: 100px;
border:10px solid;
border-color: red;
border-radius: 50%;
}
.div1{
border-color: yellow;
margin-left: 120px;
margin-top: -120px;
}
.div2{
border-color: blue;
margin-left: 240px;
margin-top: -120px;
}
.div3{
border-color: blueviolet;
margin-left: 60px;
margin-top: -60px;
}
.div4{
border-color: black;
margin-left: 180px;
margin-top: -120px;
}
</style>
</head>
<body>
<div></div>
<div class="div1"></div>
<div class="div2"></div>
<div class="div3"></div>
<div class="div4"></div>
</body>
</html>
效果图