<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>圆弧练习</title>
<style>
* {
margin: 0;
padding: 0;
}
#wrap {
width: 500px;
height: 200px;
margin: 200px auto;
border: 1px solid powderblue;
position: relative;
border-radius: 10px;
}
#bigCircle {
width: 100px;
height: 100px;
border: 1px solid powderblue;
position: absolute;
top: -75px;
left: 40px;
border-radius: 50%;
background: #ffffff;
}
#mask {
width: 150px;
height: 100px;
background: #ffffff;
position: absolute;
top: -101px;
left: 12px;
}
#smallCircle {
width: 80px;
height: 80px;
border: 1px solid powderblue;
position: absolute;
top: 9px;
left: 9px;
border-radius: 50%;
z-index: 3;
text-align: center;
line-height: 80px;
}
</style>
</head>
<body>
<div id="wrap">
<div id="bigCircle">
<div id="smallCircle">登录</div>
</div>
<!-- 遮罩层 -->
<div id="mask"></div>
</div>
</body>
</html>
效果图