纯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;
le.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0