css布局实现一滴晶莹剔透的水滴效果代码

代码语言:html

所属分类:布局界面

代码描述:css布局实现一滴晶莹剔透的水滴效果代码

代码标签: 一滴 晶莹剔透 水滴 效果

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


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

<head>

  <meta charset="UTF-8">
  

  
<style>
body {
  height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #CADE01;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  font-size: 10px;
}

.droplet {
  width: 18rem;
  height: 19rem;
  background-color: #EFEA63;
  border-radius: 40rem/40rem;
  position: relative;
  box-shadow: inset 6px 42px 20px 0 #8AD000, inset 18px 89px 12px 0 #DCE72C, 12px 18px 17px 0px #83c100;
}

.droplet::after {
  position: absolute;
  content: &#.........完整代码请登录后点击上方下载按钮下载查看

网友评论0