效果图:
所有代码:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>青蛙</title>
<style>
* {
margin: 0;
padding: 0;
}
body {
background-color: skyblue;
}
.wai {
width: 250px;
height: 450px;
background-color: green;
border-left: 100px solid green;
border-radius: 50%;
margin: 0 auto;
}
.up {
width: 50px;
height: 50px;
background-color: #000;
border: 75px solid #fff;
border-radius: 50%;
margin-left: -100px;
}
.wai {
transform: rotate(90deg);
}
.down {
width: 50px;
height: 50px;
background-color: #000;
border: 75px solid #fff;
border-radius: 50%;
margin-top: 30px;
margin-left: -100px;
}
.bz1 {
width: 12px;
height: 10px;
background-color: #3c3131b1;
position: relative;
left: 100px;
bottom: 200px;
float: left;
border-radius: 30%;
}
.bz2 {
width: 12px;
height: 10px;
background-color: #3c3131b1;
position: relative;
left: 100px;
bottom: 230px;
border-radius: 30%;
}
.zb1 {
width: 100px;
height: 250px;
border-radius: 50%;
border-right: 140px solid salmon;
/*边框的厚140px 实线 浅红色*/
position: relative;
left: 50px;
bottom: 335px;
}
</style>
</head>
<body>
<div class="wai">
<div class="up"></div>
<div class="down"></div>
<div class="bz1"></div>
<div class="bz2"></div>
<div class="zb1"></div>
</div>
</body>
</html>