首先先要申请获得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>