用纯css画出一个美女的侧面
代码语言:html
所属分类:其他
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title> Pure CSS Girl Portrait</title>
<style>
body {
background: #ffffff;
}
girl {
position: absolute;
left: 40%;
}
hair {
background: #fefbef;
height: 630px;
border-radius: 50% 0 0 0;
width: 310px;
top: 0px;
left: -195px;
position: absolute;
z-index: 999;
filter: blur(4px);
}
hair::after {
content: "";
transform: rotate(25deg);
background: #fefbef;
height: 240px;
width: 110px;
top: -5px;
left: 240px;
position: absolute;
z-index: 999;
filter: blur(4px);
}
hair1 {
background: transparent;
border-radius: 50% 0 0 0;
height: 630px;
width: 400px;
top: 0px;
left: 110px;
position: absolute;
z-index: 999;
filter: blur(2px);
border-left: 3px solid #fefbef;
}
hair2 {
background: transparent;
border-radius: 50% 0 0 0;
height: 630px;
width: 400px;
top: 0px;
left: 105px;
position: absolute;
z-index: 999999;
filter: blur(2px);
border-left: 3px solid #e2e2d7;
}
hair3 {
background: transparent;
border-radius: 50% 0 0 0;
height: 630px;
width: 400px;
top: 0px;
left: 100px;
position: absolute;
z-index: 999999;
filter: blur(2px);
border-left: 3px solid #fbfdef;
}
hair4 {
background: transparent;
border-radius: 50% 0 0 0;
height: 630px;
width: 400px;
top: 0px;
left: 95px;
position: absolute;
z-index: 999999;
filter: blur(2px);
border-left: 3px solid #e0d9d1;
}
hair5 {
background: transparent;
border-radius: 50% 0 0 0;
height: 630px;
width: 400px;
top: 0px;
left: 90px;
position: absolute;
z-index: 999999;
filter: blur(2px);
border-left: 3px solid #fbfdef;
}
hair6 {
background: transparent;
border-radius: 50% 0 0 0;
height: 630px;
width: 400px;
top: 0px;
left: 85px;
position: absolute;
z-index: 999999;
filter: blur(2px);
border-left: 3px solid #e0d9d1;
}
hair7 {
background: transparent;
border-radius: 50% 0 0 0;
height: 630px;
width: 400px;
top: 0px;
left: 80px;
position: absolute;
z-index: 999999;
filter: blur(2px);
border-left: 3px solid #fbfdef;
}
hair8 {
background: transparent;
border-radius: 50% 0 0 0;
height: 630px;
width: 400px;
top: 0px;
left: 75px;
position: absolute;
z-index: 999999;
filter: blur(2px);
border-left: 3px solid #e0d9d1;
}
hair9 {
background: transparent;
border-radius: 50% 0 0 0;
height: 630px;
width: 400px;
top: 0px;
left: 70px;
position: absolute;
z-index: 999999;
filter: blur(2px);
border-left: 3px solid #fbfdef;
}
hair10 {
background: transparent;
border-radius: 50% 0 0 0;
height: 630px;
width: 400px;
top: 0px;
left: 65px;
position: absolute;
z-index: 999999;
filter: blur(2px);
border-left: 3px solid #e0d9d1;
}
hair11 {
background: transparent;
border-radius: 50% 0 0 0;
height: 630px;
width: 400px;
top: 0px;
left: 60px;
position: absolute;
z-index: 999999;
filter: blur(2px);
border-left: 3px solid #fbfdef;
}
hair12 {
background: transparent;
border-radius: 50% 0 0 0;
height: 630px;
width: 400px;
top: 0px;
left: 55px;
position: absolute;
z-index: 999999;
filter: blur(2px);
border-left: 3px solid #e0d9d1;
}
hair13 {
background: transparent;
border-radius: 50% 0 0 0;
height: 630px;
width: 400px;
top: 0px;
left: 50px;
position: absolute;
z-index: 999999;
filter: blur(2px);
border-left: 3px solid #fbfdef;
}
hair14 {
background: transparent;
border-radius: 50% 0 0 0;
height: 630px;
width: 400px;
top: 0px;
left: 45px;
position: absolute;
z-index: 999999;
filter: blur(2px);
border-left: 3px solid #e0d9d1;
}
hair15 {
background: transparent;
border-radius: 50% 0 0 0;
height: 630px;
width: 400px;
top: 0px;
left: 40px;
position: absolute;
z-index: 999999;
filter: blur(2px);
border-left: 3px solid #fbfdef;
}
hair16 {
background: transparent;
border-radius: 50% 0 0 0;
height: 630px;
width: 400px;
top: 0px;
left: 35px;
position: absolute;
z-index: 999999;
filter: blur(2px);
border-left: 3px solid #e0d9d1;
}
hair17 {
background: transparent;
border-radius: 50% 0 0 0;
height: 630px;
width: 400px;
top: 0px;
left: 30px;
position: absolute;
z-index: 999999;
filter: blur(2px);
border-left: 3px solid #fbfdef;
}
hair18 {
background: transparent;
border-radius: 50% 0 0 0;
height: 630px;
width: 400px;
top: 0px;
left: 25px;
position: absolute;
z-index: 999999;
filter: blur(2px);
border-left: 3px solid #e0d9d1;
}
hair19 {
background: transparent;
border-radius: 50% 0 0 0;
height: 630px;
width: 400px;
top: 0px;
left: 20px;
position: absolute;
z-index: 999999;
filter: blur(2px);
border-left: 3px solid #fbfdef;
}
hair20 {
background: transparent;
border-radius: 50% 0 0 0;
height: 630px;
width: 400px;
top: 0px;
left: 15px;
position: absolute;
z-index: 999999;
filter: blur(2px);
border-left: 3px solid #e0d9d1;
}
hair21 {
background: transparent;
border-radius: 50% 0 0 0;
height: 630px;
width: 400px;
top: 0px;
left: 10px;
position: absolute;
z-index: 999999;
filter: blur(2px);
border-left: 3px solid #fbfdef;
}
hair22 {
background: transparent;
border-radius: 50% 0 0 0;
height: 630px;
width: 400px;
top: 0px;
left: 5px;
position: absolute;
z-index: 999999;
filter: blur(2px);
border-left: 3px solid #e0d9d1;
}
hair23 {
background: transparent;
border-radius: 50% 0 0 0;
height: 630px;
width: 400px;
top: 0px;
left: 0px;
position: absolute;
z-index: 999999;
filter: blur(2px);
border-left: 3px solid #fbfdef;
}
hair24 {
background: transparent;
border-radius: 50% 0 0 0;
height: 630px;
width: 400px;
top: 0px;
left: -5px;
position: absolute;
z-index: 999999;
filter: blur(2px);
border-left: 3px solid #e0d9d1;
}
hair25 {
background: transparent;
border-radius: 50% 0 0 0;
height: 630px;
width: 400px;
top: 0px;
left: -10px;
position: absolute;
z-index: 999999;
filter: blur(2px);
border-left: 3px solid #fbfdef;
}
hair26 {
background: transparent;
border-radius: 50% 0 0 0;
height: 630px;
width: 400px;
top: 0px;
left: -15px;
position: absolute;
z-index: 999999;
filter: blur(2px);
border-left: 3px solid #e0d9d1;
}
hair27 {
background: transparent;
border-radius: 50% 0 0 0;
height: 630px;
width: 400px;
top: 0px;
left: -20px;
position: absolute;
z-index: 999999;
filter: blur(2px);
border-left: 3px solid #fbfdef;
}
hair28 {
background: transparent;
border-radius: 50% 0 0 0;
.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0