css实现小孩坐在书上看书插画效果代码
代码语言:html
所属分类:布局界面
代码描述:css实现小孩坐在书上看书插画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
body {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
margin: 0;
background-color: #FFF;
font-family: "Helvetica", sans-serif;
}
.container {
position: relative;
height: 500px;
width: 450px;
}
.container * {
position: absolute;
}
*::before,
*::after {
content: '';
position: absolute;
}
/* one */
.one {
height: 35px;
width: 55px;
background-color: #da0243;
left: 150px;
bottom: 70px;
border-style: solid;
border-width: 5px 5px 5px 120px;
border-color: #fb0b4c;
}
.one::before {
height: 25px;
width: 95px;
background-color: #FFF;
top: 2px;
left: -120px;
border-style: solid;
border-width: 3px 7px 3px 7px;
border-color: #ebebeb;
}
.one::after {
height: 17px;
width: 8px;
background-color: #fdb002;
top: 8px;
left: -40px;
box-shadow: 1px 2px 0 rgba(0, 0, 0, .15);
}
/* two */
.two {
height: 45px;
width: 110px;
background-color: #1f305e;
left: 160px;
bottom: 115px;
border-style: solid;
border-width: 5px 80px 5px 5px;
border-color: #0d1a4f;
}
.two::before {
height: 35px;
width: 60px;
background-color: #FFF;
top: 3px;
left: 116px;
border-style: solid;
border-width: 3px 7px 3px 7px;
border-color: #ebebeb;
}
.two::after {
height: 32px;
width:.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0