纯css布局实现一个卡通娃娃脸效果代码
代码语言:html
所属分类:布局界面
代码描述:纯css布局实现一个卡通娃娃脸效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> /* Temp */ body { margin: 0; padding: 0; } div { box-sizing: border-box; } /* Helpers */ .oval { border-radius: 50%; width: 100px; height: 100px; box-sizing: border-box; } /* Specific classes */ .villager { position: absolute; opacity: 1; left: 28px; top: -82px; } .head { position: absolute; z-index: 10; width: 202.92px; height: 219.42px; left: 134px; top: 111.14px; background: radial-gradient(ellipse at center, #f8e3c3 0%, #f9e2cc 100%); border-radius: 90px 90px 90px 80px; transform: rotate(-16.92deg); box-shadow: inset -5px -10px 20px 0px rgba(147, 105, 86, 0.5); } .left-ear { position: absolute; z-index: 1; width: 10px; height: 10px; left: 118px; top: 252px; transform: rotate(-24.6deg) scale(0.3159, 0.4407); } .left-ear .oval { background: radial-gradient(ellipse at center, #f0c2ae 0%, #fdf1dd 100%); border-left: 10px solid #f2e8de; } .mouth { position: absolute; left: 54.5px; top: 165px; width: 66px; height: 21.57px; overflow: hidden; } .mouth .lip .........完整代码请登录后点击上方下载按钮下载查看
网友评论0