单个div+css实现挂在墙上的雪山相框效果代码

代码语言:html

所属分类:布局界面

代码描述:仅仅使用一个div和少量的css代码就能绘制出一个挂在墙上的雪山相框效果代码

代码标签: css 相框 雪山

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

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">






    <style>
        body {
          margin:0;
          height:100vh;
          display:grid;
          place-items:center;
          background:#faf0e6;
        }
        .snow {
          width:300px;
          height:200px;
          position:relative;
          box-sizing:border-box;
          border:15px solid #904928;
          background:
           linear-gradient(to bottom left,#0000 49%,#fbfbfb 51%,#e0fbfe 65%)bottom left/140% 50%,
           linear-gradient(to bottom right,#0000 49%,#fbfbfb 51%,#e0fbfe 65%)bottom right/160% 44%,
           
           conic-gradient(from 150deg at 20% 17%,#0000 10deg, #3335 40deg 60deg,#0000 0),
           conic-gradient(from 150deg at top, #92c7e6 75deg,#0000 0) 13% 35%/11% 15%,
           conic-gradient(from 140deg at top, #92c7e6 70deg,#0000 0) 18% 30.5%/9% 10%,
           conic-gradient(from 150deg at top, #92c7e6 60deg,#0000 0) 24% 32%/4% 7%,
           conic-gradient(from 150deg at 20% 49%, #fff 60deg,#0000 0) 0 0/100% 35% ,
           conic-gradient(from 150deg at 20% 17%, #92c7e6 60deg,#0000 0),
           
           conic-gradient(from 150deg at 43% 30%,#0000 10deg, #3335 40deg 60deg,#0000 0),
           conic-gradient(from 150deg at top, #92c7e6 66deg,#0000 0) 39% 49%/6% 15%,
           conic-gradient(from 140deg at top, #92c7e6 70deg,#0000 0) 42% 44.5%/9% 10%,
           conic-gradient(from 150deg at top, #92c7e6 60deg,#0000 0) 47% 44%/4% 7%,
           conic-gradient(from 150deg at 43% .........完整代码请登录后点击上方下载按钮下载查看

网友评论0