css实现五环

<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>五环</title>
		<style>
			*{
				margin: 0px;
				padding: 0px;
			}
			.circle,.circle::after{
				width: 200px;
				height:200px;
				border: 10px solid rgb(12,139,210);
				-webkit-border-radius: 50%;
				-moz-border-radius: 50%;
				border-radius: 50%;
				position: absolute; 
			}
			.circle::after{
				content: "";  
				top:-10px;
				left:-10px; 
			}
	 
			.circle1{
			   top:0px;
			   left:0px; 
			}
			.circle1::after{
				z-index: 1;
				/* 设置透明度 */
				border-bottom-color: transparent;  
			}
			.circle2{
				border-color: rgb(23,19,20);
				top:0;
				left:230px;
			}
			.circle2::after{
				border-color: rgb(23,19,20);  
				z-index: 1;
				border-left-color: transparent;
			}
			.circle3{
				border-color: rgb(245,23,18);
				top:0;
				left:460px;
			}
			.circle3::after{
				border-color: rgb(245,23,18);
				z-index: 1;
				border-left-color: transparent; 
			}
			.circle4{
				border-color: rgb(255,172,50);
				left:110px;
				top: 110px;
			}
			.circle4::after{
				border-color:rgb(255,172,50);
			}
			.circle5{
				border-color: rgb(7,159,76);
				top: 110px;
				left:340px;
			}
			.circle5::after{
				border-color: rgb(7,159,76);
				z-index: 2;
				border-top-color: transparent;
				border-right-color: transparent;
			}
		</style>
	</head>
	<body>
		<div class="circle circle1"></div>
		<div class="circle circle2"></div>
		<div class="circle circle3"></div>
		<div class="circle circle4"></div>
		<div class="circle circle5"></div>
	</body>
</html>

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值