首先先要申請獲得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>