一个div+css实现雪人效果代码

代码语言:html

所属分类:布局界面

代码描述:一个div+css实现雪人效果代码

代码标签: 雪人 效果

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


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

<head>

  <meta charset="UTF-8">
  

  
  
<style>
body {
  min-height: 500px;
  height: 100vh;
  position: relative;
  background-color: #B0D0D3;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

#snowman {
  background-repeat: no-repeat;
  width: 30em;
  height: 30em;
  background-image: radial-gradient(ellipse, black 46%, transparent 50%), radial-gradient(ellipse, silver 20%, slategray 35%, DarkSlateGray 45%, black 50%, transparent 50%), linear-gradient(black, black), radial-gradient(ellipse, silver 20%, slategray 35%, DarkSlateGray 45%, black 50%, transparent 50%), radial-gradient(ellipse, black 47%, transparent 50%), linear-gradient(RebeccaPurple, RebeccaPurple), linear-gradient(40deg, transparent 49.5%, RebeccaPurple 50%, RebeccaPurple 53.5%, transparent 54%), radial-gradient(circle, RebeccaPurple 41%, transparent 50%), radial-gradient(circle, RebeccaPurple 41%, transparent 50%), linear-gradient(-130deg, tomato 20%, transparent 21%), radial-gradient(circle, black 41%, transparent 50%), radial-gradient(circle, black 41%, transparent 50%), radial-gradient(circle, black 41%, transparent 50%), radial-gradient(circle, black 41%, transparent 50%), radial-gradient(circle, black 41%, tran.........完整代码请登录后点击上方下载按钮下载查看

网友评论0