<head>
<meta charset="utf-8">
<title>哆啦A梦</title>
<link rel="stylesheet" type="text/css" href="DLAM-style.css"/>
</head>
<body>
<div class="box">
<div id="DLAM">
<div class="head">
<div class="face"></div>
<div class="eyes">
<div class="left-eyes"></div>
<div class="right-eyes"></div>
</div>
<div class="mouth"></div>
<div class="mustache">
<div class="mustache-left"></div>
<div class="mustache-right"></div>
</div>
</div>
<div class="body">
<div class="bell"></div>
</div>
<div class="hand">
<div class="left-hand"></div>
<div class="right-hand"></div>
</div>
<div class="foot">
<div class="left-foot"></div>
<div class="right-foot"></div>
</div>
</div>
</div>
</body>
*{
margin: 0;
padding: 0;
border: 0;
box-sizing:border-box;
}
html,body{
width: 100%;
min-height: 100%;
height: 100%;
}
body{
position: relative;
}
.box{
width: 600px;
height:600px;
background-color: #fff;
box-shadow: 0 0 10px #ccc;
margin: 20px 10px;
position:relative;
z-index: -50;
}
#DLAM{
position:relative;
width: 100%;
height:100%;
}
#DLAM .head{
position:relative;
width: 300px;
height: 270px;
border: 3px solid #000;
border-top-left-radius: 48% 50%;
border-top-right-radius: 48% 50%;
border-bottom-left-radius: 40% 45%;
border-bottom-right-radius: 40% 45%;
position: absolute;
top:20px;
left: 0;
right: 0;
margin: 0 auto;
background-color: #6395EC;
}
#DLAM .face{
width: 240px;
height:220px;
border-top-left-radius: 50% 60%;
border-top-right-radius:50% 60%;
border-bottom-left-radius: 35% 50%;
border-bottom-right-radius: 35% 50%;
position: absolute;
top:43px;
left: 0;
right:0;
margin: 0 auto;
background-color: #fff;
}
#DLAM .eyes{
width:100px;
height: 80px;
position:absolute;
top:20px;
left:0;
right:0;
margin:0 auto;
}
#DLAM .left-eyes, #DLAM .right-eyes{
width: 50%;
height: 100%;
border: 2px solid #000000;
position: relative;
background-color: #fff;
display:block;
}
#DLAM .left-eyes{
border-radius: 50% 40% 50% 40%;
}
#DLAM .left-eyes:before{
content:"";
width: 20px;
height: 30px;
border:2px solid #000;
border-radius:50% 50%;
top:30%;
left:15px;
background-color: black;
position: absolute;
}
#DLAM .left-eyes:after{
content:"";
width: 15px;
height: 20px;
border:1px solid #FFF2E3;
border-radius:50% 50%;
top:40%;
left:20px;
background-color: #fff;
position: absolute;
}
#DLAM .right-eyes{
border-radius: 40% 50% 40% 50%;
left:50px;
top: -80px;
}
#DLAM .right-eyes:before{
content:"";
width: 20px;
height: 30px;
border:2px solid #000;
border-radius:50% 50%;
top:30%;
right:15px;
background-color: black;
position: absolute;
}
#DLAM .right-eyes:after{
content:"";
width: 15px;
height: 20px;
border:1px solid #FFF2E3;
border-radius:50% 50%;
top:40%;
right:20px;
background-color: #fff;
position: absolute;
}
#DLAM .mouth{
width: 100px;
height: 50px;
border: 2px solid #000;
border-top:none;
border-top-left-radius: 0% 0%;
border-top-right-radius: 0% 0%;
border-bottom-left-radius: 50% 100%;
border-bottom-right-radius: 50% 100%;
position: absolute;
top:150px;
left: 0;
right: 0;
margin: 0 auto;
}
#DLAM .mouth:before{
content:"";
width: 30px;
height: 30px;
border-radius:100%;
border:2px solid black;
position: absolute;
top:-50px;
left:0;
right: 0;
margin: 0 auto;
box-shadow: inset 0px -5px 0 10px #FF6B6B;
}
#DLAM .mouth:after{
content:"";
width: 0px;
height:68px;
border-left:2px solid #000;
position: absolute;
top: -18px;
left: 0;
right: 0;
margin: 0 auto;
}
#DLAM .mustache-left{
width: 70px;
height: 1px;
background-color: #000;
transform: rotate(0deg);
position: absolute;
top: 140px;
left: 45px;
box-shadow: 0 1px #555;
-webkit-box-reflect:right 28px;
}
#DLAM .mustache-left:before{
content:"";
width: 70px;
height: 1px;
background-color: #000;
transform: rotate(30deg);
position: absolute;
top: -28px;
left: 4px;
box-shadow: 0 1px #555;
}
#DLAM .mustache-left:after{
content:"";
width: 70px;
height: 1px;
background-color: #000;
transform: rotate(-30deg);
position: absolute;
top: 30px;
left: 4px;
box-shadow: 0 1px #555;
-webkit-box-reflect:right 28px;
}
#DLAM .mustache-right{
width: 70px;
height: 1px;
background-color: #000;
transform: rotate(0deg);
transform: rotate;
position: absolute;
top: 140px;
right: 45px;
box-shadow: 0 1px #555;
}
#DLAM .mustache-right:before{
content:"";
width: 70px;
height: 1px;
background-color: #000;
transform: rotate(-30deg);
position: absolute;
top: -28px;
right: 4px;
box-shadow: 0 1px #555;
}
#DLAM .mustache-right:after{
content:"";
width: 70px;
height: 1px;
background-color: #000;
transform: rotate(30deg);
position: absolute;
top: 30px;
right: 4px;
box-shadow: 0 1px #555;
}
#DLAM .body{
position: relative;
width: 280px;
height: 220px;
border-top-left-radius: 40% 50%;
border-top-right-radius: 40% 50%;
border-bottom-left-radius: 30% 45%;
border-bottom-right-radius: 30% 45%;
position: absolute;
top:300px;
left:0;
right:0;
margin: 0 auto;
background-color: #6395EC;
z-index: -2;
}
#DLAM .body:before{
content: “”;
width:170px;
height: 160px;
border:2px solid #000;
border-radius: 50%/60%;
position: absolute;
top:0;
left: 0;
right: 0;
margin: 0 auto;
background-color: #fff;
z-index: -2;
}
#DLAM .body:after{
content:"";
width:150px;
height:80px;
border: 2px solid #000;
border-radius: 50%/0 0 100% 100%;
position: absolute;
top:70px;
left:0;
right: 0;
margin: 0 auto;
background-color: #fff;
}
#DLAM .bell{
width: 50px;
height: 50px;
background-color: #756742;
border-radius:100%;
border-color: #FEE13E;
border-style: solid;
border-top-width: 26px;
border-bottom-width: 12px;
border-left-width: 19px;
border-right-width: 19px;
box-shadow:0 0 1px 1px #000,inset 0 0 1px 1px #000;
position: absolute;
top: 0;
left: 0;
right: 0;
margin: 0 auto;
z-index: -1;
}
#DLAM .bell:before{
content: “”;
width: 45px;
height: 5px;
background-color: greenyellow;
border:2px solid #000;
position: absolute;
left: -18px;
right: -18px;
top: -13px;
border-radius: 5px;
}
#DLAM .bell:after{
content: “”;
height: 18px;
background-color: #D90222;
border: 2px solid #000;
border-radius: 5px;
position: absolute;
left: -60px;
right: -60px;
top: -40px;
z-index: -1;
}
#DLAM .hand{
width: 300px;
position: absolute;
top: 300px;
left: 0;
right: 0;
margin: 0 auto;
z-index: -3;
}
#DLAM .left-hand,#DLAM .right-hand{
width: 64px;
height: 64px;
border:2px solid #000;
border-radius: 100%;
position: relative;
background-color: #fff;
}
#DLAM .left-hand{
float: left;
top: 90px;
left: -90px;
}
#DLAM .left-hand:before{
content: “”;
width: 50px;
height: 130px;
border:1px solid black;
border-top:none;
border-right: none;
border-bottom: none;
border-top-left-radius: 30% 50%;
border-top-right-radius: 0% 0%;
border-bottom-left-radius: 30% 50%;
border-bottom-right-radius: 0% 0%;
position: absolute;
top: -90px;
left: 65px;
transform:rotate(55deg);
background-color: #059AE2;
z-index: -3;
}
#DLAM .right-hand{
float: right;
top: 90px;
right: -90px;
}
#DLAM .right-hand:before{
content: “”;
width: 50px;
height: 130px;
border:1px solid black;
border-top:none;
border-left: none;
border-bottom: none;
border-top-left-radius: 0% 0%;
border-top-right-radius: 30% 50%;
border-bottom-left-radius: 0% 0%;
border-bottom-right-radius: 30% 50%;
position: absolute;
top: -90px;
right: 65px;
transform:rotate(-55deg);
background-color: #059AE2;
z-index: -3;
}
#DLAM .foot{
height: 50px;
width: 280px;
position: absolute;
left: 0;
right: 0;
top:520px;
margin: 0 auto;
}
#DLAM .left-foot, #DLAM .right-foot{
width: 50%;
height: 100%;
border: 2px solid #000;
}
#DLAM .left-foot{
float: left;
border-top-left-radius: 40% 80%;
border-top-right-radius: 0% 0%;
border-bottom-left-radius: 30% 50%;
border-bottom-right-radius: 10% 10%;
}
#DLAM .right-foot{
float: right;
border-top-left-radius: 0% 0%;
border-top-right-radius: 40% 80%;
border-bottom-left-radius: 10% 10%;
border-bottom-right-radius: 30% 50%;
}
8450

被折叠的 条评论
为什么被折叠?



