单个div+css实现宝石sketch图标效果代码

代码语言:html

所属分类:布局界面

代码描述:单个div+css实现宝石sketch图标效果代码

代码标签: 单个 div css 宝石 sketch 图标

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


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

<head>

  <meta charset="UTF-8">

  
  
<style>
html, body {
  width: 100%;
  height: 100%;
  display: flex;
  background: radial-gradient(circle, #632679, #2c1b56);
}

div {
  position: relative;
  width: 470px;
  height: 270px;
  margin: auto;
  background: linear-gradient(63deg, transparent, transparent 50%, #ffad39 50%, #ffad39), linear-gradient(-63deg, transparent, transparent 50%, #ffad39 50%, #ffad39), linear-gradient(49deg, transparent, transparent 50%, #f16a25 50%, #f16a25), linear-gradient(-49deg, transparent, transparent 50%, #f16a25 50%, #f16a25);
  background-repeat: no-repeat;
  background-size: 138px 100%, 138px 100%, 235px 100%, 235px 100%;
  background-position: 97px 0, 235px 0, 0 0, 235px 0;
}

div::before {
  content: "";
  position: absolute;
  width: 276px;
  height: 150px;
  top: -150px;
  left: 50%;
  transform: translat.........完整代码请登录后点击上方下载按钮下载查看

网友评论0