一个div布局实现仙境美食效果代码

代码语言:html

所属分类:布局界面

代码描述:一个div布局实现仙境美食效果代码

代码标签: 实现 仙境 美食 效果

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


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

<head>

  <meta charset="UTF-8">

  
<style>
body {
  min-height: 220px;
  height: 100vh;
  position: relative;
  background-color: #a52a2a;
  text-align: center;
}
div {
  position: absolute;
  left: 50%;
  top: 50%;
}
div:before,
div:after {
  display: block;
  content: '';
  position: absolute;
}
#surprise {
  width: 17em;
  height: 10em;
  margin-left: -8.5em;
  margin-top: -5em;
  background-repeat: no-repeat;
  background-image: -webkit-gradient(linear, left top, left bottom, from(#5f9ea0), to(#5f9ea0)), -webkit-gradient(linear, left top, left bottom, from(#ffd700), to(#ffd700)), -webkit-gradient(linear, left top, left bottom, from(#ccac00), to(#ccac00)), -webkit-gradient(linear, left top, left bottom, from(#ccac00), to(#ccac00)), -webkit-gradient(linear, left top, left bottom, from(#ccac00), to(#ccac00)), radial-gradient(ellipse at 0 0, #ffd700 54%, rgba(255,215,0,0) 55%), radial-gradient(ellipse at 100% 0, #ffd700 54%, rgba(255,215,0,0) 55%), -webkit-gradient(linear, left top, left bottom, from(#ffd700), to(#ffd700)), -webkit-gradient(linear, left top, left bottom, from(#ffd700), to(#ffd700)), radial-gradient(ellipse at 100% 50%, #ccac00 60%, rgba(255,215,0,0) 61%), -webkit-gradient(linear, left top, left bottom, from(#ffd700), to(#ffd700)), -webkit-gradient(linear, left top, left bottom, from(#ffd700), to(#ffd700)), repeating-linear-gradient(to right, #8b4513, #8b4513 0.5em, #f4a460 0.5em, #f4a460 1em), repeating-linear-gradient(to right, #f4a460, #f4a460 0.5em, #8b4513 0.5em, #8b4513 1em), radial-gradient(circle, #00ced1 60%, rgba(0,206,209,0) 60.5%), radial-gradient(circle, #00ced1 60%, rgba(0,206,209,0) 60.5%), radial-gradient(circle, #00ced1 60%, rgba(0,206,209,0) 60.5%), radial-gradient(circle, #afeeee 54%, #00ced1 54.5%, #00ced1 60%, rgba(0,206,209,0) 60.5%), -webkit-gradient(linear, left top, left bottom, color-stop(0.3em, #ffd700), color-stop(0.3em, #565078));
  background-image: linear-gradient(#5f9ea0, #5f9ea0), linear-gradient(#ffd700, #ffd700), linear-gradient(#ccac00, #ccac00), linear-gradient(#ccac00, #ccac00), linear-gradient(#ccac00, #ccac00), radial-gradient(ellipse at 0 0, #ffd700 54%, rgba(255,215,0,0) 55%), radial-gradient(ellipse at 100% 0, #ffd700 54%, rgba(255,215,0,0) 55%), linear-gradient(#ffd700, #ffd700), linear-gradient(#ffd700, #ffd700), radial-gradient(ellipse at 100% 50%, #ccac00 60%, rgba(255,215,0,0) 61%), linear-gradient(#ffd700, #ffd700), linear-gradient(#ffd700, #ffd700), repeating-linear-gradient(to right, #8b4513, #8b4513 0.5em, #f4a460 0.5em, #f4a460 1em), repeating-linear-gradient(to right, #f4a460, #f4a460.........完整代码请登录后点击上方下载按钮下载查看

网友评论0