<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://purl.org/rss/1.0/"
xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel rdf:about="https://www.ishiguang.cn/feed/rss/tag/%E4%BB%A3%E7%A0%81/">
<title>拾光 - 代码</title>
<link>https://www.ishiguang.cn/tag/%E4%BB%A3%E7%A0%81/</link>
<description></description>
<items>
<rdf:Seq>
<rdf:li resource="https://www.ishiguang.cn/21781.html"/>
<rdf:li resource="https://www.ishiguang.cn/16531.html"/>
</rdf:Seq>
</items>
</channel>
<item rdf:about="https://www.ishiguang.cn/21781.html">
<title>给网站加上飘雪效果</title>
<link>https://www.ishiguang.cn/21781.html</link>
<dc:date>2025-09-04T15:05:00+08:00</dc:date>
<description>文章包含隐藏内容，请进入文章内页查看~</description>
</item>
<item rdf:about="https://www.ishiguang.cn/16531.html">
<title>雪花飘落特效</title>
<link>https://www.ishiguang.cn/16531.html</link>
<dc:date>2022-08-30T17:06:00+08:00</dc:date>
<description>雪花飘落特效只需要简单加载一个JS 不需要复杂的去加载CSS。或者别的直接上代码  把这个放进头部就可以了  /// &lt;reference path=&quot;jquery-1.10.2.min.js&quot; /&gt;
  ///
  ///
  var minSize = 5;
  var maxSize = 20;
  var newOn = 280;
  var flake = $(&quot;&lt;div&gt;&lt;/div&gt;&quot;).css({ &quot;position&quot;: &quot;absolute&quot;, &quot;top&quot;: &quot;-50px&quot; }).html(&quot;❅&quot;);
  $(function () {


    var documentHeight = $(document).height();
    var documentWidth = $(document).width();
    setInterval(function () {
    var startPositionLeft = Math.random() * documentWidth;
    var sizeFlake = minSize + Math.random() * maxSize;
    var endPositionLeft = Math.random() * documentWidth;
    var durationFall = documentHeight * 15 + Math.random() * 3000;
    var startOpacity = 0.7 + 0.3 * Math.random();
    var endOpacity = 1.5 * Math.random();
    flake.clone().appendTo($(&quot;body&quot;)).css({
        &quot;left&quot;: startPositionLeft,
        &quot;opacity&quot;: startOpacity,
        &quot;font-size&quot;: sizeFlake,
        &quot;color&quot;: &quot;#aadff1&quot;
    }).animate({
        &quot;top&quot;: documentHeight - 40,
        &quot;left&quot;: endPositionLeft,
        &quot;opacity&quot;: endOpacity
    }, durationFall, function () {
        $(this).remove();
    });
    }, newOn);
    });
记得加载jquery  如果有加载就不需要再加载了！效果如下</description>
</item>
</rdf:RDF>