纯css用div布局一个长颈鹿效果
代码语言:html
所属分类:布局界面
代码描述:纯css用div布局一个长颈鹿效果,无图片svg,纯css绘制
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> /* COLORS*/ .giraffe { height: 268px; width: 205px; position: absolute; top: 0; left: 0; bottom: 0; right: 0; margin: auto; } .circle { width: 40px; height: 40px; position: absolute; margin: auto; -moz-border-radius: 50%; -webkit-border-radius: 50%; border-radius: 50%; } .oval { width: 100px; height: 50px; position: absolute; background: red; -moz-border-radius: 50px; -webkit-border-radius: 50px; border-radius: 50px; } .head-circle-01 { width: 140px; height: 127px; background-color: #f6d8ae; top: 68px; left: 0; right: 0; } .head-oval-02 { width: 126px; height: 178px; background-color: #f6d8ae; bottom: 29px; left: 0; right: 0; margin: auto; } .forhead-oval-03 { width: 60px; height: 87px; background-color: #C27A2E; top: 82px; z-index: 1; left: 0; right: 0; margin: auto; } .snout-oval-04 { width: 119px; height: 78px; background-color: #f3c48c; bottom: 30px; left: 0; right: 0; margin: auto; } .snout-oval-05 { width: 78px; height: 93px; background-color: #f3c48c; bottom: 14px; left: 40px; } .snout-oval-flip-06 { width: 78px; height: 93px; background-color: #f3c48c; bottom: 14px; right: 40px; } .nostrils-oval-07 { width: 16px; height: 6px; -ms-transform: rotate(204deg); -webkit-transform: rotate(204deg); transform: rotate(204deg); background-color: #302f2e; bottom: 60px; left: 80px; z-index: 4; } .nostrils-oval-f.........完整代码请登录后点击上方下载按钮下载查看
网友评论0