html和css都很简单,这里也就不多说了,直接看效果:
html代码,复制到html文件直接打开即可。
<!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>Document</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.circle {
width: 0;
height: 0;
margin: 100px;
border-top: 100px solid #000;
border-right: 100px solid #000;
border-left: 100px solid #fff;
border-bottom: 100px solid #fff;
border-radius: 50%;
box-shadow: 0px 0px 1px 4px #000;
position: relative;
/* filter: blur(1px); */
}
.circle:before {
content: "";
width: 30px;
height: 30px;
border-radius: 50%;
background-color: #000;
border:36px solid #fff;
position: absolute;
left: -16px;
top: -16px;
/* filter: blur(1px); */
}
.circle:after {
content: "";
width: 30px;
height: 30px;
border-radius: 50%;
background-color: #fff;
border:36px solid #000;
position: absolute;
right: -16px;
bottom: -16px;
/* filter: blur(1px); */
}
</style>
</head>
<body>
<div class="circle"></div>
</body>
</html>
喜欢的话点个关注呗!!
上一篇:npm adduser或者npm login报错,npm login不能登陆解决办法。
下一篇:前端批量请求之:Promise.all和Promise.race