<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.containner{
width: 400px;
margin:200px auto;
}
.center{
background-color: black;
width: 200px;
height: 400px;
border: 1px solid black;
/* background-color: antiquewhite; */
position: relative;
z-index: 999999;
}
.bottom_left{
width: 80px;
height: 100px;
border-radius: 50px 0px 0px 50px;
background-color: black;
position: absolute;
bottom: 0;
left: -70px;
}
.bottom_right{
width: 80px;
height: 100px;
border-radius: 0px 50px 50px 0;
background-color: black;
position: absolute;
bottom: 0;
right: -70px;
}
.top{
width: 200px;
height: 100px;
border-radius: 100px 100px 0px 0;
background-color: rgb(220, 161, 161);
position: absolute;
top: -90px;
overflow: hidden;
}
.box{
height: 100px;
width: 1px;
border: 2px solid rgb(225, 168, 168);
background-color: red;
margin: auto;
}
</style>
</head>
<body>
<div class="containner">
<div class="center">
<div class="top">
<div class="box"></div>
</div>
<div class="bottom_left"></div>
<div class="bottom_right"></div>
</div>
</div>
</body>
</html>
坤坤的HTML粗糙代码
猜你喜欢
转载自blog.csdn.net/qq_52856519/article/details/129419223
今日推荐
周排行