zoukankan      html  css  js  c++  java
  • 一个雪花、爱心飘落的页面

    <!--花瓣开始-->
    <script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-2.1.1.min.js"></script>
    <script type="text/javascript" src="http://pic.keede.com/event/2017/2017kjqrj/jquery.let_it_snow.js"></script>
    <script>
        $(document).ready(function () {
            $("canvas.flake").let_it_snow({
                windPower: -3,
                speed: 2,
                count: 30,
                size: 10,
                image: "http://pic.keede.com/event/2017/2017qrj/huaban.png"
            });
    
        });
    </script>
    <style>
        canvas {
            display: block;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            position: fixed;
            z-index: 1000;
            pointer-events: none;
        }
    </style>
    <canvas width="100%" height="100%" class="flake"></canvas>
    <!--花瓣结束-->

    效果图:

  • 相关阅读:
    杨辉三角
    手动实现md5加密
    戳气球
    重构字符串
    四数相加 II
    背包问题 II
    组合总和 IV
    背包问题 V
    背包问题
    Win 10安装Python及环境变量配置
  • 原文地址:https://www.cnblogs.com/heyiming/p/6873999.html
Copyright © 2011-2022 走看看