css布局实现一个日本武士效果代码

代码语言:html

所属分类:布局界面

代码描述:css布局实现一个日本武士效果代码

代码标签: 一个 日本 武士 效果

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


<!DOCTYPE html>
<html lang="en" >

<head>

  <meta charset="UTF-8">
  

  
  
  
<style>
body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
}

#container {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
}
#container .circle-bg {
  width: 450px;
  height: 450px;
  position: absolute;
  background-color: #e52015;
  border-radius: 100%;
  top: 50px;
}
#container .samurai-jack {
  width: 270px;
  height: 510px;
  display: flex;
  align-items: center;
  position: relative;
  flex-direction: column;
  border-bottom: 5px solid #e52015;
}
#container .samurai-jack .hair-top {
  width: 0;
  height: 0;
  position: absolute;
  left: 0;
  right: 0;
  top: -20px;
  margin: 0 auto;
  border-left: 8px solid transparent;
  border-right: 14px solid transparent;
  border-top: 25px solid black;
  z-index: 9;
}
#container .samurai-jack .ear-left,
#container .samurai-jack .ear-right {
  position: absolute;
  top: 25px;
  width: 25px;
  height: 27px;
  border-radius: 35px;
  background-color: #fefeb9;
}
#container .samurai-jack .ear-right {
  left: 92px;
}
#container .samurai-jack .ear-left {
  right: 92px;
}
#container .samurai-jack .hea.........完整代码请登录后点击上方下载按钮下载查看

网友评论0