圆等分成三个扇形菜单

<!DOCTYPE html>
<html lang="zh">
<head>
	<meta charset="UTF-8" />
	<meta http-equiv="X-UA-Compatible" content="ie=edge" />
	<title>Document</title>
	<style type="text/css">
		*{
			margin: 0;
			padding: 0;
		}
		.box{
			position: relative;
			width: 536px;
			height: 536px;
			border-radius: 50%;
			overflow: hidden;
		}
		.box .s1{
			width: 400px;
			height: 400px;
			background: green;
			display: block;
			position: absolute;
			top: -115px;
			left: -14px;
			transform: rotate(0deg) skew(-30deg);
		}
		.box .s2{
			width: 400px;
			height: 400px;
			background: yellow;
			display: block;
			position: absolute;
			top: 58px;
			left: 286px;
			transform: rotate(-120deg) skew(30deg);
		}
		.box .s3{
			width: 400px;
			height: 400px;
			background: red;
			display: block;
			position: absolute;
			top: 285px;
			left: -14px;
			transform: rotate(180deg) skew(30deg);
		}
		.box i{
			position: absolute;
			left: 268px;
			top: 268px;
		}
	</style>
</head>
<body>
	<div class="box">
		<a href="http://www.baidu.com" class="s1"></a>
		<a href="http://www.imooc.com" class="s2"></a>
		<a href="http://www.runoob.com" class="s3"></a>
		<i>.</i>
	</div>
</body>
</html>

猜你喜欢

转载自blog.csdn.net/zx_p24/article/details/77506534