应用圆角、定位相关知识实现
<!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>
div {
position: relative;
left: 200px;
top: 100px;
}
p {
width: 100px;
height: 100px;
background: red;
border-radius: 100%;
text-align: center;
line-height: 100px;
color: yellowgreen;
}
p:nth-child(1) {
border-radius: 40px 120px 42px 120px;
}
p:nth-child(2) {
border-radius: 120px 40px 120px 36px;
position: absolute;
top: -16px;
left: 42px;
z-index: -1;
text-indent: 22px;
}
</style>
</head>
<body>
<div>
<p>爱</p>
<p>你</p>
</div>
</body>
</html>