兩個SPAN
元素。
其中一個圓形邊框,
,內部圓形只有圓角底邊。比保證金和background
性質玩....
.circle-face{
display: inline-block;
border: 4px solid #00B9D1;
border-radius: 50%;
width: 140px;
height: 140px;
margin-top: 30px; /* 30px forehead space */
}
.circle-face > *{
display: inline-block;
width: 140px;
height: 170px; /* by 30px higher */
margin-top: -30px; /* and offset by 30px */
background: none no-repeat center bottom/170px;
border-radius: 0 0 70px 70px; /* 70 + 70 = 140px width */
/* box-shadow: 0 0 0 4px red; /* UNCOMMENT TO SEE THE TRICK */
}
<span class="circle-face">
<span style="background-image:url(https://i.stack.imgur.com/bdZeE.png);"></span>
<span>