Loading

博客背景美化——动态雪花飘落

首先先要申请获得CSS权限

在页面定制CSS代码中加入以下代码

 1 #Snow{
 2     position: fixed;
 3     top: 0;
 4     left: 0;
 5     width: 100%;
 6     height: 100%;
 7     z-index: 99999;
 8     background: rgba(255,255,240,0.1);
 9     pointer-events: none;
10 }

再在侧边公告栏加入

<div class="Snow">
    <canvas id="Snow"></canvas>
</div>
<script src="https://files.cnblogs.com/files/cn-suqingnian/snow.js"></script>
posted @ 2019-04-27 16:32  GrayKido  阅读(1663)  评论(5编辑  收藏  举报