原图:
效果图:
虽然说没用啥什么高级的技巧,但这让我感受到了css的乐趣!
好好学习,天天向上!
body{
background-color: #66b3ff;
height: 300px;
overflow: hidden;
}
#head{
width: 200px;
height: 200px;
position: absolute;
left: 50%;
top:31%;
margin-left: -100px;
margin-top: -100px;
background-color: #0080ff;
border-radius: 999px;
border: 1px solid black;
}
#face{
width: 179px;
height: 150px;
position: absolute;<