效果样式
emoji
Html
<div class="face-smile">
<span></span>
</div>
<div class="face-smile face-cry">
<span></span>
</div>
Css
.face-smile{
width: 50px;
height: 50px;
display: inline-block;
background-color: #fbd971;
border-radius: 50%;
position: relative;
}
.face-smile::before,.face-smile::after{
width: 22px;
height: 22px;
border-radius: 50%;
transform: rotate(225deg);
border: 3px solid #f0c419;
border-right-color: transparent!important;
border-bottom-color: transparent!important;
position: absolute;
bottom: 8px;
left: 11px;
}
.face-smile::before, .face-smile::after{
content: "";
width: 6px;
height: 6px;
left: 8px;
top: 14px;
border-color: #f0c419;
transform: rotate(45deg);
}
.face-smile::after{
left: auto;
right: 8px;
}
.face-smile>span{
width: 22px;
height: 22px;
border-radius: 50%;
transform: rotate(225deg);
border: 3px solid #f0c419;
border-right-color: transparent!important;
border-bottom-color: transparent!important;
position: absolute;
bottom: 8px;
left: 11px;
}
.face-cry>span{
transform: rotate(45deg);
bottom: -6px;
}
网友评论