单个div+css实现带眼镜卷发男人物头像效果代码

代码语言:html

所属分类:布局界面

代码描述:单个div+css实现带眼镜卷发男人物头像效果代码

代码标签: 单个 div css 眼镜 卷发 人物 头像

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


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

<head>

  <meta charset="UTF-8">

  
  
<style>
body {
  min-height: 350px;
  height: 100vh;
  position: relative;
  background-color: #87ceeb;
}
div {
  position: absolute;
  left: 50%;
  top: 50%;
}
div::before,
div::after {
  display: block;
  content: '';
  position: absolute;
}
@media (max-width: 400px) {
  div:not(.no-scale) {
    transform: scale(0.8);
  }
}
#beloved {
  width: 260px;
  height: 260px;
  margin-left: -130px;
  margin-top: -130px;
  background: linear-gradient(65deg, rgba(255,218,185,0) 68%, #ffdab9 68.5%) 38.5% 100%/3em 1.8em, linear-gradient(-65deg, rgba(255,218,185,0) 68%, #ffdab9 68.5%) 61.5% 100%/3em 1.8em, radial-gradient(circle at 100% 50%, #ff5638 50%, rgba(255,99,71,0) 50.5%) 40.4% 85%/0.5em 1em, radial-gradient(ellipse at 100% 50%, #1f7f1f, 60%, rgba(34,139,34,0) 60.2%) 39.3% 87%/0.8em 0.5em, radial-gradient(circle, #d2691e 50%, rgba(210,105,30,0) 50.5%) 39% 91%/0.3em 0.3em, radial-gradient(circle, #ff5638 50%, rgba(255,99,71,0) 50.5%) 44% 96.5%/1em 1em, radial-gradient(ellipse, #228b22, 60%, rgba(34,139,34,0) 60.2%) 46% 100%/0.5em 1em, radial-gradient(circle, #d2691e 50%, rgba(210,105,30,0) 50.5%) 43% 99%/0.3em 0.3em, radial-gradient(circle at 0 50%, #ff5638 50%, rgba(255,99,71,0) 50.5%) 59.6% 85%/0.5em 1em, radial-gradient(ellipse at 0 50%, #1f7f1f, 60%, rgba(34,139,34,0) 60.2%) 60.7% 87%/0.8em 0.5em, radial-gradient(circle, #d2691e 50%, rgba(210,105,30,0) 50.5%) 61% 91%/0.3em 0.3em, radial-gradient(circle, #ff5638 50%, rgba(255,99,71,0) 50.5%) 56% 96.5%/1em 1em, radial-gradient(ellipse, #228b22, 60%, rgba(34,139,34,0) 60.2%) 54% 100%/0.5em 1em, radial-gradient(circle, #d2691e 50%, rgba(210,105,30,0) 50.5%) 96% 99%/0.3em 0.3em, linear-gradient(130deg, rgba(255,215,0,0) 50%, #e6c200 50.5%) 36.5% 88%/1.5em 1.7em, linear-gradient(-130deg, rgba(255,215,0,0) 50%, #e6c200 50.5%) 63.5% 88%/1.5em 1.7em, linear-gradient(50deg, rgba(255,215,0,0) 43%, #e6c200 43.5%, #e6c200 65%, rgba(255,215,0,0) 65.5%) 37.7% 100.1%/3em 1.8em, linear-gradient(60deg, rgba(0,0,0,0) 37%, rgba(0,0,0,0.3) 37.5%, rgba(0,0,0,0.3) 55%, rgba(0,0,0,0) 55.5%) 37.7% 100.1%/3em 1.8em, linear-gradient(65deg, rgba(255,215,0,0) 50%, #e6c200 50.5%, #e6c200 68%, rgba(255,215,0,0) 68.5%) 38.5% 100%/3em 1.8em, linear-gradient(-50deg, rgba(255,215,0,0) 43%, #e6c200 43.5%, #e6c200 65%, rgba(255,215,0,0) 65.5%) 62.3% 100.1%/3em 1.8em, linear-gradient(-60deg, rgba(0,0,0,0) 37%, rgba(0,0,0,0.3) 37.5%, rgba(0,0,0,0.3) 55%, rgba(0,0,0,0) 55.5%) 62.3% 100.1%/3em 1.8em, linear-gradient(-65deg, rgba(255,215,0,0) 50%, #e6c200 50.5%, #e6c200 68%, rgba(255,215,0,0) 68.5%) 61.5% 100%/3em 1.8em, radial-gradient(circle at 50% 0, rgba(0,0,0,0.2) 70%, rgba(0,0,0,0) 70.5%) 50% 82%/2.5em 2.5em, linear-gradient(#ffdab9, #ffdab9) 50% 100%/2.5em 4.2em, radial-gradient(ellipse at 50% 140%, rgba(32,178,170,0) 60%, #20b2aa 60.5%) 50% 100%/16em 3em, radial-gradient(circle, #ff6347 50%, rgba(255,99,71,0) 50.5%) 25% 92%/1em 1em, radial-gradient(circle, #ff6347 50%, rgba(255,99,71,0) 50.5%) 29% 94%/1em 1em, radial-gradient(circle, #ff6347 50%, rgba(255,99,71,0) 50.5%) 25.5% 96%/1em 1em, radial-gradient(ellipse, #228b22, 60%, rgba(34,139,34,0) 60.2%) 21.5% 93%/1em 0.5em, radial-gradient(ellipse, #228b22, 60%, rgba(34,139,34,0) 60.2%) 16% 97%/0.5em 1em, radial-gradient(circle, #d2691e 50%, rgba(210,105,30,0) 50.5%) 14% 99%/0.3em 0.3em, radial-gradient(circle, #ff6347 50%, rgba(255,99,71,0) 50.5%) 20% 103%/1em 1em, radial-gradient(circle, #ff6347 50%, rgba(255,99,71,0) 50.5%) 16% 105%/1em 1em, radial-gradient(circle, #d2691e 50%, rgba(210,105,30,0) 50.5%) 22% 96%/0.3em 0.3em, radial-gradient(ellipse, #228b22, 60%, rgba(34,139,34,0) 60.2%) 27% 104%/0.5em 1em, radial-gradient(circle, #d2691e 50%, rgba(210,105,30,0) 50.5%) 31% 97%/0.3em 0.3em, radial-gradient(circle, #d2691e 50%, rgba(210,105,30,0) 50.5%) 35% 92%/0.3em 0.3em, radial-gradient(circle, #ff6347 50%, rgba(255,99,71,0) 50.5%) 37.5% 98%/1em 1em, radial-gradient(circle, #ff6347 50%, rgba(255,99,71,0) 50.5%) 39.5% 102%/1em 1em, radial-gradient(ellipse, #228b22, 60%, rgba(34,139,34,0) 60.2%) 35% 99%/1em 0.5em, radial-gradient(circle, #ff6347 50%, rgba(255,99,71,0) 50.5%) 75% 92%/1em 1em, radial-gradient(circle, #ff6347 50%, rgba(255,99,71,0) 50.5%) 71% 94%/1em 1em, radial-gradient(circle, #ff6347 50%, rgba(255,99,71,0) 50.5%) 74.5% 96%/1em 1em, radial-gradient(ellipse, #228b22, 60%, rgba(34,139,34,0) 60.2%) 78.5% 93%/1em 0.5em, radial-gradient(ellipse, #228b22, 60%, rgba(34,139,34,0) 60.2%) 84% 97%/0.5em 1em, radial-gradient(circle, #d2691e 50%, rgba(210,105,30,0) 50.5%) 86% 99%/0.3em 0.3em, radial-gradient(circle, #ff6347 50%, rgba(255,99,71,0) 50.5%) 80% 103%/1em 1em, radial-gradient(circle, #ff6347 50%, rgba(255,99,71,0) 50.5%).........完整代码请登录后点击上方下载按钮下载查看

网友评论0