<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style>
.main{
background-color: gray;
width: 500px;
height: 150px;
margin: auto;
position: relative;
top: 300px;
overflow: hidden;
border-radius: 1000px;
}
.main :nth-child(1){
border: 4px solid gray;
border-radius: 1000px;
position: absolute;
top: -32px;
width: 150px;
height: 50px;
background-color: white;
left: 60px;
}
.main :nth-child(2){
position: absolute;
background-color: white;
width: 150px;
height: 50px;
border: 4px solid gray;
top: 120px;
left: 60px;
border-radius: 100px;
}
.main :nth-child(3){
position: absolute;
width: 350px;
height: 50px;
border: 4px solid gray;
background-color: white;
border-radius: 1000px;
top: 40px;
left: 250px;
}
</style>
</head>
<body>
<div class="main">
<div></div>
<div></div>
<div></div>
</div>
</body>
</html>
本博客所有文章除特别声明外,均采用
CC BY-NC-SA 4.0
许可协议。转载请注明来自喵喵知识园 !
评论
评论