css实现渐变阴影效果代码

代码语言:html

所属分类:布局界面

代码描述:css实现渐变阴影效果代码

代码标签: 阴影 效果

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


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

<head>

  <meta charset="UTF-8">

  <meta name="viewport" content="width=device-width, initial-scale=1">
  
  
  
<style>
.sample {
  inline-size: 50vmin;
  block-size: 35vmin;
  background: linear-gradient(
    to bottom right, 
    hsl(150 100% 50%), 
    hsl(190 100% 60%)
  );
  border-radius: 1rem;
  position: relative;
}

.sample::before {
  content: '';
  position: absolute;
  inset: 0;
  backg.........完整代码请登录后点击上方下载按钮下载查看

网友评论0