css布局实现一个像素雪花树效果代码

代码语言:html

所属分类:布局界面

代码描述:css布局实现一个像素雪花树效果代码

代码标签: 一个 像素 雪花 效果

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

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

<head>

    <meta charset="UTF-8">






    <style>
        body {
            background-color: lightblue;
        }

        .tree {
            position: relative;
            width: calc(25 * 10px);
            height: calc(26 * 10px);
            margin: 1rem;
        }
        .tree::after {
            content: '';
            position: absolute;
            top: 10%;
            left: 10%;
            width: 10px;
            height: 10px;
            box-shadow: 0px 0px transparent,  10px 0px transparent,  20px 0px transparent,  30px 0px transparent,  40px 0px transparent,  50px 0px transparent,  60px 0px transparent,  70px 0px transparent,  80px 0px transparent,  90px 0px transparent,  100px 0px transparent,  110px 0px transparent,  120px 0px #fff,  130px 0px transparent,  140px 0px #fff,  150px 0px transparent,  160px 0px transparent,  170px 0px #fff,  180px 0px #fff,  0px 10px transparent,  10px 10px transparent,  20px 10px transparent,  30px 10px transparent,  40px 10px transparent,  50px 10px transparent,  60px 10px transparent,  70px 10px transparent,  80px 10px transparent,  90px 10px transparent,  100px 10px transparent,  110px 10px transparent,  120px 10px transparent,  130px 10px #b35900,  140px 10px transparent,  150px 10px transparent,  160px 10px transparent,  170px 10px #b35900,  0px 20px transparent,  10px 20px transparent,  20px 20px transparent,  30px 20px transparent,  40px 20px transparent,  50px 20px transparent,  60px 20px transparent,  70px 20px transparent,  80px 20px transparent,  90px 20px transparent,  100px 20px transparent,  110px 20px #fff,  120px 20px transparent,  130px 20px #b35900,  140px 20px transparent,  150px 20px #b35900,  160px 20px #fff,  170px 20px #b35900,  0px 30px transparent,  10px 30px transparent,  20px 30px transparent,  30px 30px transparent,  40px 30px transparent,  50px 30px transparent,  60px 30px transparent,  70px 30px transparent,  80px 30px transparent,  90px 30px transparent,  100px 30px transparent,  110px 30px #b35900,  120px 30px transparent,  130px 30px #b35900,  140px 30px transparent,  150px 30px transparent,  160px 30px #b35900,  170px 30px #663300,  180px 30px transparent,  190px 30px transparent,  200px 30px transparent,  210px 30px transparent,  220px 30px #fff,  230px 30px #fff,  0px 40px transparent,  10px 40px transparent,  20px 40px transparent,  30px 40px transparent,  40px 40px #fff,  50px 40px #fff,  60px 40px transparent,  70px 40px transparent,  80px 40px transparent,  90px 40px transparent,  100px 40px transparent,  110px 40px transparent,  120px 40px #663300,  130px 40px #b35900,  140px 40px #fff,  150px 40px #663300,  160px 40px #b35900,  170px 40px transparent,  180px 40px transparent,  190px 40px transparent,  200px 40px #fff,  210px 40px transparent,  220px 40px #b35900,  230px 40px #fff,  240px 40px #fff,  0px 50px transparent,  10px 50px transparent,  20px 50px transparent,  30px 50px transparent,  40px 50px #fff,  50px 50px #b35900,  60px 50px transparent,  70px 50px transparent,  80px 50px transparent,  90px 50px transparent,  100px 50px transparent,  110px 50px transparent,  120px 50px transparent,  130px 50px #b35900,  140px 50px transparent,  150px 50px transparent,  160px 50px #b35900,  170px 50px #fff,  180px 50px transparent,  190px 50px #fff,  200px 50px #b35900,  210px 50px #b35900,  220px 50px #b35900,  0px 60px #fff,  10px 60px #fff,  20px 60px transparent,  30px 60px transparent,  40px 60px transparent,  50px 60px #b35900,  60px 60px transparent,  70px 60px #fff,  80px 60px transparent,  90px 60px transparent,  100px 60px transparent,  110px 60px transparent,  120px 60px transparent,  130px 60px #b35900,  140px 60px #fff,  150px 60px transparent,  160px 60px #b35900,  170px 60px #b35900,  180px 60px transparent,  190px 60px #b35900,  0px 70px transparent,  10px 70px #b35900,  20px 70px transparent,  30px 70px transparent,  40px 70px transparent,  50px 70px #b35900,  60px 70px transparent,  70px 70px transparent,  80px 70px #b35900,  90px 70px transparent,  100px 70px transparent,  110px 70px transparent,  120px 70px transparent,  130px 70px transparent,  140px 70px #b35900,  150px 70px transparent,  160px 70px transparent,  170px 70px #663300,  180px 70px #fff,  190px 70px #b35900,  200px 70px transparent,  210px 70px transparent,  220px 70px transparent,  230px 70px #b35900,  240px 70px transparent,  250px 70px #fff,  0px 80px transparent,  10px 80px transparent,  20px 80px #663300,  30px 80px #fff,  40px 80px transparent,  50px 80px transparent,  60px 80px #663300,  70px 80px transparent,  80px 80px #b35900,  90px 80px transparent,  100px 80px transparent,  110px 80px transparent,  120px 80px transparent,  130px 80px #fff,  140px 80px #b35900,  150px 80px #fff,  160px 80px transparent,  170px 80px #b35900,  180px 80px #b35900,  190px 80px transparent,  200px 80px transparent,  210px 80px transparent,  220px 80px #fff,  230px 80px #b35900,  240px 80px #b35900,  250px 80px #b35900,  0px 90px transparent,  10px 90px transparent,  20px 90px transparent,  30px 90px #b35900,  40px 90px #fff,  50px 90px #fff,  60px 90px #663300,  70px 90px #fff,  80px 90px #b35900,  90px 90px transparent,  100px 90px transparent,  110px 90px transparent,  120px 90px transparent,  130px 90px #b35900,  140px 90px transparent,  150px 90px #b35900,  160px 90px #fff,  170px 90px #b35900,  180px 90px transparent,  190px 90px #fff,  200px 90px transparent,  210px 90px transparent,  220px 90px #b35900,  0px 100px transparent,  10px 100px transparent,  20px 100px transparent,  30px 100px transparent,  40px 100px #b35900,  50px 100px #b35900,  60px 100px #b35900,  70px 100px #b35900,  80px 100px transparent,  90px 100px transparent,  100px 100px #fff,  110px 100px transparent,  120px 100px transparent,  130px 100px #b35900,  140px 100px transparent,  150px 100px transparent,  160px 100px #b35900,  170px 100px #b35900,  180px 100px transparent,  190px 100px #663300,  200px 100px #fff,  210px 100px #b35900,  0px 110px transparent,  10px 110px transparent.........完整代码请登录后点击上方下载按钮下载查看

网友评论0