jquery+Html5/canvas实现真实下雪特效代码


  1. <script type=“text/javascript” src=“http://apps.bdimg.com/libs/jquery/1.7.2/jquery.min.js”></script>
  2. <script src=“http://itbyc.com/templets/yang/js/snow.js”></script>
  3. <style type=“text/css”>.snowcontainer{position:fixed;top:0;left:0;width:100%;height:100%;
  4. pointerevents:none;zindex:100001;}</style>
  5. <div class=“snow-container”>
  6. <canvas width=“1440” height=“803”></canvas>
  7. </div>
点赞

发表评论