图例:
代码:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>耿鬼</title>
<style>
body {
background: #fff;
font-family: 'Comfortaa', sans-serif;
}
* {
box-sizing: border-box;
}
*:before,
*:after {
content: '';
position: absolute;
}
main {
width: 400px;
height: 400px;
margin: auto;
text-align: center;
}
.gengar {
background: #9179c6;
margin: 3em auto 5em;
width: 310px;
height: 350px;
border-radius: 50% 50% 50% 50%/60% 60% 40% 40%;
margin: auto;
position: relative;
}
.gengar .ear {
width: 150px;
height: 150px;
background: #9179c6;
border-radius: 10px;
position: relative;
transform: rotate(-120deg) skewX(-40deg) scale(1, 0.866);
position: absolute;
top: 0;
}
.gengar .ear.right {
position: absolute;
background: #9179c6;
transform: rotate(110deg) skewX(40deg) scale(1, 0.866);
right: 0;
}
.gengar .hair {
width: 0;
height: 0;
position