css布局实现一个爷爷奶奶效果

代码语言:html

所属分类:布局界面

代码描述:css布局实现一个爷爷奶奶效果

代码标签: 一个 爷爷 奶奶 效果

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开


<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">

<style>
body{
background:#2C4953;
overflow:hidden;
}
.container{
position:relative;
margin:auto;
display:block;
width:500px;
height:800px;

}
.face{
  position:relative;
  width:250px;
  height:150px;
  top:100px;
  background:#F2BBAD;
  border-radius:150px;
  
}
.eye-l{
  position:absolute;
  width:60px;
  height:60px;
  background:#AEE1F2;
    border:2px solid black;
  border-radius:50px;
  left:50px;
  top:30px;
}
.eye-r{
    position:absolute;
  width:60px;
  height:60px;
  background:#AEE1F2;
    border:2px solid black;
  border-radius:50px;
  right:50px;
  top:30px;
}
.line{
      position:absolute;
  width:30px;
  height:15px;
  background:#AEE1F2;
  border-radius:50px;
border:2px solid black;
  right:107px;
  top:55px;
}
.smile{
     position:absolute;
  width:50px;
  height:30px;
  background:#fff;
  border-radius:0px 0px 50px 50px;
  right:100px;
  top:100px;
}
.dot-r{
    position:absolute;
  width:20.........完整代码请登录后点击上方下载按钮下载查看

网友评论0