用html制作一个简单的五环

来源:互联网 发布:三菱plcq系列编程手册 编辑:程序博客网 时间:2024/05/01 10:18
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style type="text/css">
div{
width: 100px;
height: 100px;
background-color: transparent;
border: 10px solid ;
border-radius: 110px;
}
.a1{
border-color: blue;
}
.a2{
border-color:black;
margin-top: -120px;
margin-left: 130px;
}
.a3{
border-color: yellow;
margin-top: -120px;
margin-left: 260px;
}
.a4{
border-color: red;
margin-top:-60px;
margin-left: 55px;
}
.a5{
border-color: green;
margin-top: -120px;
margin-left: 185px;
}
</style>
</head>
<body>
<div class="a1"></div>
<div class="a2"></div>
<div class="a3"></div>
<div class="a4"></div>
<div class="a5"></div>
</body>
</html>
原创粉丝点击