CSS弯月

效果

代码

<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>弯月</title>
		<style>
			.center {
				position: absolute;
				margin: auto;
				top: 0;
				right: 0;
				bottom: 0;
				left: 0;
				width: 100px;
				height: 100px;
				background-color: transparent;
				border-radius: 50%;
				box-shadow: 25px 10px 2px 10px yellow;
			}
		</style>
	</head>
	<body>
		<div class="center"></div>
	</body>
</html>

 源代码来自:应用视觉设计: 使用 CSS 创建一个图形 | freeCodeCamp.org

猜你喜欢

转载自blog.csdn.net/fyydashen/article/details/123795845
今日推荐