<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:wfw="http://wellformedweb.org/CommentAPI/">
<channel>
<title>拾光 - 分享</title>
<link>https://www.ishiguang.cn/tag/%E5%88%86%E4%BA%AB/</link>
<atom:link href="https://www.ishiguang.cn/feed/tag/%E5%88%86%E4%BA%AB/" rel="self" type="application/rss+xml" />
<language>zh-CN</language>
<description></description>
<lastBuildDate>Mon, 01 Dec 2025 17:33:31 +0800</lastBuildDate>
<pubDate>Mon, 01 Dec 2025 17:33:31 +0800</pubDate>
<item>
<title>excel小技巧</title>
<link>https://www.ishiguang.cn/22136.html</link>
<guid>https://www.ishiguang.cn/22136.html</guid>
<pubDate>Mon, 01 Dec 2025 17:33:31 +0800</pubDate>
<dc:creator>admin</dc:creator>
<description><![CDATA[excel小技巧多列内容快速整理成一列汇总报销文字竖向名称整理工资表填充筛选合并表格]]></description>
<content:encoded xml:lang="zh-CN"><![CDATA[
<p>excel小技巧</p><p>多列内容快速整理成一列<br></p><p>汇总报销<br></p><p>文字竖向<br></p><p>名称整理<br></p><p>工资表<br></p><p>填充<br></p><p>筛选<br></p><p>合并表格<br></p>
]]></content:encoded>
<slash:comments>0</slash:comments>
<comments>https://www.ishiguang.cn/22136.html#comments</comments>
<wfw:commentRss>https://www.ishiguang.cn/feed/tag/%E5%88%86%E4%BA%AB/</wfw:commentRss>
</item>
<item>
<title>excel数据透视和vlookup</title>
<link>https://www.ishiguang.cn/22127.html</link>
<guid>https://www.ishiguang.cn/22127.html</guid>
<pubDate>Mon, 01 Dec 2025 16:40:00 +0800</pubDate>
<dc:creator>admin</dc:creator>
<description><![CDATA[excel数据透视和vlookupexcel数据透视: 先框选-插入-数据透视vlookup： =vlookup(选择查询的数据依据，数据范围F4锁定，数据位置列，0或者false)]]></description>
<content:encoded xml:lang="zh-CN"><![CDATA[
<p>excel数据透视和vlookup</p><p>excel数据透视:<br> 先框选-插入-数据透视<br>vlookup：<br> =vlookup(选择查询的数据依据，数据范围F4锁定，数据位置列，0或者false)</p><p><br><br><br></p>
]]></content:encoded>
<slash:comments>0</slash:comments>
<comments>https://www.ishiguang.cn/22127.html#comments</comments>
<wfw:commentRss>https://www.ishiguang.cn/feed/tag/%E5%88%86%E4%BA%AB/</wfw:commentRss>
</item>
<item>
<title>螺旋矩阵解法</title>
<link>https://www.ishiguang.cn/21844.html</link>
<guid>https://www.ishiguang.cn/21844.html</guid>
<pubDate>Wed, 17 Sep 2025 15:07:15 +0800</pubDate>
<dc:creator>ssr</dc:creator>
<description><![CDATA[螺旋矩阵解法实现以下矩阵C#解法：public class Solution {    public IList&lt;int&gt; SpiralOrder(int[][] matrix) {...]]></description>
<content:encoded xml:lang="zh-CN"><![CDATA[
<p>螺旋矩阵解法</p><p>实现以下矩阵</p><p><img src="https://up.ishiguang.cn/uploads/2025/09/2213531560.png?imageMogr2/format/webp" alt="2025-09-17T07:05:43.png" title="2025-09-17T07:05:43.png"></p><p>C#解法：</p><pre><code class="lang-c#">public class Solution {
    public IList&lt;int&gt; SpiralOrder(int[][] matrix) {
        var result = new List&lt;int&gt;();
        if (matrix == null || matrix.Length == 0 || matrix[0].Length == 0)
            return result;

        int top = 0, bottom = matrix.Length - 1;
        int left = 0, right = matrix[0].Length - 1;

        while (top &lt;= bottom &amp;&amp; left &lt;= right) {
            for (int i = left; i &lt;= right; i++) result.Add(matrix[top][i]);
            top++;

            for (int i = top; i &lt;= bottom; i++) result.Add(matrix[i][right]);
            right--;

            if (top &lt;= bottom) {
                for (int i = right; i &gt;= left; i--) result.Add(matrix[bottom][i]);
                bottom--;
            }

            if (left &lt;= right) {
                for (int i = bottom; i &gt;= top; i--) result.Add(matrix[i][left]);
                left++;
            }
        }
        return result;
    }
}</code></pre>
]]></content:encoded>
<slash:comments>0</slash:comments>
<comments>https://www.ishiguang.cn/21844.html#comments</comments>
<wfw:commentRss>https://www.ishiguang.cn/feed/tag/%E5%88%86%E4%BA%AB/</wfw:commentRss>
</item>
<item>
<title>代码编辑软件推荐</title>
<link>https://www.ishiguang.cn/21842.html</link>
<guid>https://www.ishiguang.cn/21842.html</guid>
<pubDate>Tue, 16 Sep 2025 23:34:00 +0800</pubDate>
<dc:creator>ssr</dc:creator>
<description><![CDATA[代码编辑软件推荐1. Notepad++Windows平台专用 轻量级，启动快速 丰富的插件生态系统 多种语言语法高亮 文件比较功能2. Notepad--跨平台支持 国产自主开发 内置代码对比...]]></description>
<content:encoded xml:lang="zh-CN"><![CDATA[
<p>代码编辑软件推荐</p><p><strong>1. Notepad++</strong></p><blockquote>Windows平台专用 轻量级，启动快速 丰富的插件生态系统 多种语言语法高亮 文件比较功能</blockquote><p><strong>2. Notepad--</strong></p><blockquote>跨平台支持 国产自主开发 内置代码对比功能 支持UOS/Linux系统 轻量级设计</blockquote><p><strong>3. Notepad3</strong></p><blockquote>极致轻量级 启动速度极快 内存占用极低 基于Scintilla引擎 简洁直观界面</blockquote><p><strong>4. VS Code</strong></p><blockquote>跨平台支持 强大的扩展生态 集成开发环境 内置Git支持 资源占用较高</blockquote><p>下载地址：<br><a href="https://pan.quark.cn/s/231b2c227004?pwd=s9WW">https://pan.quark.cn/s/231b2c227004?pwd=s9WW</a></p>
]]></content:encoded>
<slash:comments>0</slash:comments>
<comments>https://www.ishiguang.cn/21842.html#comments</comments>
<wfw:commentRss>https://www.ishiguang.cn/feed/tag/%E5%88%86%E4%BA%AB/</wfw:commentRss>
</item>
<item>
<title>phpstudy运行PHP网站出现404、500权限不足解决方法</title>
<link>https://www.ishiguang.cn/21836.html</link>
<guid>https://www.ishiguang.cn/21836.html</guid>
<pubDate>Tue, 16 Sep 2025 08:50:34 +0800</pubDate>
<dc:creator>ssr</dc:creator>
<description><![CDATA[phpstudy运行PHP网站出现404、500解决方法问题：phpstudy运行PHP网站时候，首页没有问题出现404、500、或者出现权限不足最开始的时候我以为是文件权限不足后来看到别人的解...]]></description>
<content:encoded xml:lang="zh-CN"><![CDATA[
<p>phpstudy运行PHP网站出现404、500解决方法<br>问题：phpstudy运行PHP网站时候，首页没有问题出现404、500、或者出现权限不足</p><p>最开始的时候我以为是文件权限不足后来看到别人的解决方法才解决，解决方法如下</p><p>第一步<br><img src="https://up.ishiguang.cn/uploads/2025/09/2279226194.png?imageMogr2/format/webp" alt="2025-09-16T00:44:32.png" title="2025-09-16T00:44:32.png"><br>第二步在这个位置加入这段代码</p><p><img src="https://up.ishiguang.cn/uploads/2025/09/201225262.png?imageMogr2/format/webp" alt="2025-09-16T00:45:49.png" title="2025-09-16T00:45:49.png"></p><pre><code>#autoindex on;
  if (!-e $request_filename) {
    rewrite ^(.*)$ /index.php?s=/$1 last;
    break;
  }  </code></pre><p>然后修改完成保存文件，并重启一下网站即可解决。</p>
]]></content:encoded>
<slash:comments>0</slash:comments>
<comments>https://www.ishiguang.cn/21836.html#comments</comments>
<wfw:commentRss>https://www.ishiguang.cn/feed/tag/%E5%88%86%E4%BA%AB/</wfw:commentRss>
</item>
<item>
<title>网易云音乐NCM格式转换</title>
<link>https://www.ishiguang.cn/18708.html</link>
<guid>https://www.ishiguang.cn/18708.html</guid>
<pubDate>Mon, 26 Jun 2023 14:33:00 +0800</pubDate>
<dc:creator>admin</dc:creator>
<description><![CDATA[文章包含隐藏内容，请进入文章内页查看~]]></description>
<content:encoded xml:lang="zh-CN"><![CDATA[
文章包含隐藏内容，请进入文章内页查看~
]]></content:encoded>
<slash:comments>0</slash:comments>
<comments>https://www.ishiguang.cn/18708.html#comments</comments>
<wfw:commentRss>https://www.ishiguang.cn/feed/tag/%E5%88%86%E4%BA%AB/</wfw:commentRss>
</item>
<item>
<title>填写地址的输入框如果域名带有http://和https://以及结尾带/都替换成空</title>
<link>https://www.ishiguang.cn/18625.html</link>
<guid>https://www.ishiguang.cn/18625.html</guid>
<pubDate>Sun, 07 May 2023 10:49:20 +0800</pubDate>
<dc:creator>admin</dc:creator>
<description><![CDATA[填写地址的输入框如果域名带有http://和https://以及结尾带/都替换成空你可以在输入框失去焦点或提交表单时触发函数，在函数中检查输入框的值，然后应用相应的转换。以下是一个示例函数：fu...]]></description>
<content:encoded xml:lang="zh-CN"><![CDATA[
<p>填写地址的输入框如果域名带有http://和https://以及结尾带/都替换成空</p><p>你可以在输入框失去焦点或提交表单时触发函数，在函数中检查输入框的值，然后应用相应的转换。以下是一个示例函数：</p><pre><code>function cleanInput() {
  var input = document.getElementById(&quot;input-box&quot;);
  var value = input.value.trim();

  // 如果值以 http:// 或 https:// 开头，或以 / 结尾，则替换为空
  if (
    value.startsWith(&quot;http://&quot;) ||
    value.startsWith(&quot;https://&quot;) ||
    value.endsWith(&quot;/&quot;)
  ) {
    value = value.replace(/^https?:\/\/|\/$/g, &quot;&quot;);
  }

  // 将修改后的值更新到输入框
  input.value = value;
}</code></pre><p>这个函数首先获取输入框的值，并使用 trim() 方法删除首尾空格。然后，它使用正则表达式检查值是否以 http:// 或 https:// 开头，或者是否以 / 结尾。如果检测到这样的情况，就使用 replace() 方法将匹配到的内容替换为空。</p><p>最后，函数将修改后的值更新到输入框。你可以将此函数绑定到输入框的 onblur 或表单的 onsubmit 事件，以便在合适的时候自动进行转换。</p><p>或者用下面的JS处理</p><pre><code>&lt;input id=&quot;url-input&quot; type=&quot;text&quot; placeholder=&quot;Enter URL...&quot;&gt;
&lt;input  type=&quot;text&quot; placeholder=&quot;456&quot;&gt;
&lt;script&gt;
   var urlInput = document.getElementById(&quot;url-input&quot;);

urlInput.addEventListener(&quot;blur&quot;, function () {
  var url = urlInput.value.trim();

  // 如果值以 http:// 或 https:// 开头，或以 / 结尾，则替换为空
  if (
    url.startsWith(&quot;http://&quot;) ||
    url.startsWith(&quot;https://&quot;) ||
    url.endsWith(&quot;/&quot;)
  ) {
    url = url.replace(/^(https?:\/\/)|\/$/g, &quot;&quot;);
    urlInput.value = url;
  }
});

&lt;/script&gt;</code></pre><p>这段代码使用 addEventListener() 方法为输入框的 blur 事件添加了一个监听器。当输入框失去焦点时，就会触发这个监听器，并执行处理 URL 的代码。</p><p>这个代码与之前的示例类似。它首先获取输入框的值并使用 trim() 方法删除首尾空格。然后，它使用正则表达式检查值是否以 http:// 或 https:// 开头，或者是否以 / 结尾。如果检测到这样的情况，就使用 replace() 方法将匹配到的内容替换为空，并将修改后的值更新到输入框。</p>
]]></content:encoded>
<slash:comments>0</slash:comments>
<comments>https://www.ishiguang.cn/18625.html#comments</comments>
<wfw:commentRss>https://www.ishiguang.cn/feed/tag/%E5%88%86%E4%BA%AB/</wfw:commentRss>
</item>
<item>
<title>css限制指定数量字符</title>
<link>https://www.ishiguang.cn/18615.html</link>
<guid>https://www.ishiguang.cn/18615.html</guid>
<pubDate>Fri, 05 May 2023 15:36:11 +0800</pubDate>
<dc:creator>admin</dc:creator>
<description><![CDATA[CSS本身没有限制指定数量字符的属性，但可配合JavaScript实现。以下是一个使用CSS和JavaScript来限制指定数量字符的示例：&lt;p class=&quot;limit-tex...]]></description>
<content:encoded xml:lang="zh-CN"><![CDATA[
<p>CSS本身没有限制指定数量字符的属性，但可配合JavaScript实现。</p><p>以下是一个使用CSS和JavaScript来限制指定数量字符的示例：</p><pre><code class="lang-html">&lt;p class=&quot;limit-text&quot; data-limit=&quot;50&quot;&gt;这里是需要限制字符长度的文本&lt;/p&gt;</code></pre><pre><code class="lang-css">.limit-text {
  white-space: nowrap;
  overflow: hidden;
}

.limit-text::after{
    content: &quot;...&quot;; /* 添加省略号 */
}</code></pre><pre><code class="lang-js">// 获取所有需要限制字符长度的元素
const limitTexts = document.querySelectorAll(&#039;.limit-text&#039;);

// 遍历每个需要限制字符长度的元素
limitTexts.forEach(function(el) {
    const limit = el.getAttribute(&#039;data-limit&#039;); // 从元素 data-limit 属性获取字符长度限制
    const text = el.textContent; // 获取元素的文本内容

    // 如果文本内容超过了限制
    if (text.length &gt; limit) {
        el.textContent = text.substr(0, limit); // 截取前 n 个字符
        el.classList.add(&#039;has-ellipsis&#039;); // 添加 ellipsis 样式类名
    }
});</code></pre><p>以上代码中，首先我们定义了一个类名为 .limit-text 的元素，该元素将在 CSS 样式中设置 white-space: nowrap 和 overflow: hidden 属性，以防止文本换行和溢出。同时，在 ::after 伪元素中添加省略号来表示被截断的文本部分。</p><p>然后，使用 JavaScript 代码来获取所有含有 .limit-text 类名的元素，并遍历每个元素，从 data-limit 属性获取文字最大长度 limit，并获取元素的文本 text，如果文本超过指定的长度限制，则进行字符串截取，并在元素中添加 has-ellipsis 样式类名，使得省略号可见。</p><p>最后，可以使用其他的 CSS 样式来对 .has-ellipsis 类名进行定制化样式。</p>
]]></content:encoded>
<slash:comments>0</slash:comments>
<comments>https://www.ishiguang.cn/18615.html#comments</comments>
<wfw:commentRss>https://www.ishiguang.cn/feed/tag/%E5%88%86%E4%BA%AB/</wfw:commentRss>
</item>
<item>
<title>瀑布流的样式-例子</title>
<link>https://www.ishiguang.cn/18614.html</link>
<guid>https://www.ishiguang.cn/18614.html</guid>
<pubDate>Fri, 05 May 2023 07:52:03 +0800</pubDate>
<dc:creator>admin</dc:creator>
<description><![CDATA[以下是一个基本的瀑布流布局的 CSS 样式：.masonry {    column-count: 3; /* 列数 */    column-gap: 20px; /* 列之间的间距 */}....]]></description>
<content:encoded xml:lang="zh-CN"><![CDATA[
<p>以下是一个基本的瀑布流布局的 CSS 样式：</p><pre><code class="lang-css">.masonry {
    column-count: 3; /* 列数 */
    column-gap: 20px; /* 列之间的间距 */
}

.masonry .item {
    margin-bottom: 20px; /* 元素之间的垂直间距 */
    display: inline-block;
    width: 100%;
}

/* 根据实际图片大小调整瀑布流元素的高度 */
.masonry .item img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .masonry {
        column-count: 2;
    }
}</code></pre><p>以上 CSS 样式将元素放置在多列中，可以自动布局，使得整个布局更加美观。其中 column-count 属性设置列数，column-gap 属性设置列之间的间距。另外，通过 @media 样式实现在小屏幕下响应式布局，将列数适当调整。</p><p>在 HTML 中，可以将元素以 .item 的类名包裹，然后将所有的 .item 放在 .masonry 容器中，如下所示：</p><pre><code class="lang-html">&lt;div class=&quot;masonry&quot;&gt;
  &lt;div class=&quot;item&quot;&gt;
    &lt;img src=&quot;image1.jpg&quot; alt=&quot;&quot;&gt;
    &lt;p&gt;这里是图片描述&lt;/p&gt;
  &lt;/div&gt;
  &lt;div class=&quot;item&quot;&gt;
    &lt;img src=&quot;image2.jpg&quot; alt=&quot;&quot;&gt;
    &lt;p&gt;这里是图片描述&lt;/p&gt;
  &lt;/div&gt;
  &lt;!-- 其他元素... --&gt;
&lt;/div&gt;</code></pre><p>请注意，瀑布流布局对浏览器的支持不够全面，可能需要使用浏览器前缀或 JavaScript 插件来实现兼容。</p>
]]></content:encoded>
<slash:comments>0</slash:comments>
<comments>https://www.ishiguang.cn/18614.html#comments</comments>
<wfw:commentRss>https://www.ishiguang.cn/feed/tag/%E5%88%86%E4%BA%AB/</wfw:commentRss>
</item>
<item>
<title>HTML5鼠标跟随星星光标特效</title>
<link>https://www.ishiguang.cn/18611.html</link>
<guid>https://www.ishiguang.cn/18611.html</guid>
<pubDate>Wed, 03 May 2023 15:35:05 +0800</pubDate>
<dc:creator>admin</dc:creator>
<description><![CDATA[HTML5鼠标跟随星星光标特效&lt;style&gt;.stage {position: fixed;top: 0;left: 0;width: 100%;height: 100%;z-ind...]]></description>
<content:encoded xml:lang="zh-CN"><![CDATA[
<p>HTML5鼠标跟随星星光标特效</p><pre><code>&lt;style&gt;.stage {position: fixed;top: 0;left: 0;width: 100%;height: 100%;z-index: 5;pointer-events: none}&lt;/style&gt;
&lt;div style=&quot;background:#900;&quot;&gt;
&lt;canvas id=&quot;stage1&quot; class=&quot;stage&quot;&gt;&lt;/canvas&gt;


&lt;script type=&quot;text/javascript&quot; src=&quot;js/jquery.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;js/canvas.js&quot;&gt;&lt;/script&gt;

&lt;div style=&quot;text-align:center;margin:50px 0; font:normal 14px/24px &#039;MicroSoft YaHei&#039;;&quot;&gt; 
&lt;/div&gt;

&lt;/div&gt;</code></pre><p><img src="https://up.ishiguang.cn/blog/typecho/2023-05-03T07:33:22-20230503033322.png?imageMogr2/format/webp" alt="2023-05-03T07:33:22-20230503033322.png" title="2023-05-03T07:33:22-20230503033322.png"></p><p><a href="https://up.ishiguang.cn/blog/typecho/xingxing-20230503033445.zip">xingxing-20230503033445.zip</a></p>
]]></content:encoded>
<slash:comments>0</slash:comments>
<comments>https://www.ishiguang.cn/18611.html#comments</comments>
<wfw:commentRss>https://www.ishiguang.cn/feed/tag/%E5%88%86%E4%BA%AB/</wfw:commentRss>
</item>
</channel>
</rss>