实现网页粒子效果很简单 只需要在网页中加上以下代码即可
<script color="0,0,0" opacity="0.9" count="100" src="https://cdn.bootcss.com/canvas-nest.js/1.0.1/canvas-nest.js" type="text/javascript" charset="utf-8"></script>
<!--color=“255,0,0” 背景粒子线的颜色值
opacity=“0.5” 背景粒子线的透明度,一般设置成0.5-1之间
count=“99” 背景粒子线的密度,建议不要太大,否则页面容易卡死
-->