div+css绘制北京冬季奥运会吉祥物冰墩墩和雪容融代码
代码语言:html
所属分类:布局界面
代码描述:div+css绘制北京冬季奥运会吉祥物冰墩墩和雪容融代码
代码标签: div css 绘制 北京 冬季 奥运会 吉祥物 冰墩墩 雪容融
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<style>
* { margin: 0; padding: 0 }
body { font: 15px "Microsoft YaHei", Arial, Helvetica, sans-serif; background: #d4ebf1; }
.dongao { position: absolute; left: 50%; top: 50%; width: 1200px; height: 500px; margin-top: -250px; margin-left: -600px; }
/*bdd*/
.bdd { width: 600px; height: 500px; overflow: hidden; float: left; }
.m_body { width: 362px; height: 410px; border: #393939 8px solid; margin: 50px auto; border-radius: 88% 88% 62% 68% / 82% 82% 95% 84%; position: absolute; left: 109px; top: -30px; background: url(//repo.bfw.wiki/bfwrepo/icon/623930bfccb54.png) no-repeat center bottom 20px #fff; background-size: 63px; }
.ear1, .ear2 { background: #393939; width: 81px; height: 115px; border-radius: 50%; position: absolute; z-index: -1; }
.ear1 { left: 150px; top: 26px; transform: rotate( -10deg ); }
.ear2 { left: 362px; top: 28px; transform: rotate(10deg); }
.eye1, .eye2 { background: #393939; width: 83px; height: 115px; border-radius: 50%; position: absolute; }
.eye1 { left: 185px; top: 122px; transform: rotate(45deg); }
.eye2 { left: 329px; top: 122px; transform: rotate(-45deg); }
.eye1:before, .eye2:before { content: ""; width: 40px; height: 40px; border: #fff 5px solid; border-radius: 100%; position: absolute; }
.eye1:before { right: 10px; top: 22px; }
.eye2:before { left: 10px; top: 22px; }
.eye1:after, .eye2:after { content: ""; width: 10px; height: 10px; background: #9b9b9b; border-radius: 100%; position: absolute; }
.eye1:after { right: 27px; top: 31px; }
.eye2:after { left: 41px; top: 44px; }
.face { position: absolute; border-radius: 48% 48% 44% 49%/ 53% 54% 45% 47%; }
.c_blue.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0