这是一个用 HTML 和 CSS 编写的爱心代码:
<style>
.heart {
position: relative;
display: inline-block;
width: 80px;
height: 80px;
background: #f00;
border-radius: 50%;
transform: rotate(45deg);
margin: 8px;
}
.heart:before,
.heart:after {
content: "";
position: absolute;
background: #f