AI资讯

设计师必备!Potlab SVG 动画图标库免费下载,支持矢量自定义颜色大小

2025-07-17
5538次阅读
设计师必备!Potlab SVG 动画图标库免费下载,支持矢量自定义颜色大小
今天给大家带来一款超级实用的宝藏级工具 ——Potlab SVG 动画图标库,它简直是设计师的「效率神器」!作为一名在互联网行业摸爬滚打了 10 年的老司机,我测评过无数设计资源平台,而 Potlab 凭借完全免费、矢量可定制、动画效果丰富这三大核心优势,成功跻身我的「年度最佳工具清单」。如果你还在为找高质量的图标素材发愁,或者想快速提升项目的视觉表现力,这篇深度解析一定要看完!

? 核心亮点:为什么设计师都爱用 Potlab?


1. 完全免费且开源,商业项目放心用


Potlab 的所有图标均采用CC 4.0 开源协议,这意味着你可以免费用于个人和商业项目,甚至对图标进行二次修改和分发,唯一的要求是保留原作者署名。对比那些动辄几百元的付费图标库,或者免费但限制商用的平台,Potlab 简直是「业界良心」。

2. 矢量格式 + 自定义属性,设计自由度拉满


所有图标均为SVG 矢量格式,支持无限缩放而不失真,无论是在手机屏幕还是巨幅海报上,都能保持清晰的细节。更绝的是,你可以轻松调整图标的颜色、大小、描边宽度,甚至通过 CSS 代码修改动画参数,比如速度、循环次数等。举个例子,如果你下载了一个红色的购物车图标,只需要修改fill属性,就能一键变成蓝色、绿色或任何你想要的颜色,完美适配品牌色。

3. 自带动画效果,让设计「动」起来


普通的静态图标看多了难免单调,而 Potlab 的图标内置基础动画效果,比如旋转、缩放、淡入淡出等,无需额外编写代码,直接通过 HTML 或 CSS 引用就能实现动态效果。这对于网页按钮、加载提示、交互元素等场景来说,能大大提升用户体验。想象一下,当用户点击按钮时,图标会轻微旋转或放大,这种细节上的「小心思」,往往能让设计作品脱颖而出。

4. 经典主题 + 高频场景,素材库实用又高效


Potlab 目前收录了50 + 经典主题,包括常见的爱心、通知、购物车、定位、放大镜、相机等,覆盖了电商、社交、工具类等高频设计场景。虽然数量不算多,但每一个都是精心打磨的「万能款」,比如搜索图标采用极简的线条风格,既适合科技感的 APP,也能融入复古风的网页设计。这种「少而精」的策略,比那些动辄上万图标却质量参差不齐的平台更实用。

?️ 保姆级使用教程:3 步搞定图标下载与定制


第一步:快速找到心仪的图标


  1. 打开 Potlab 官网(http://www.potlabicons.com/),首页以网格形式展示所有图标,你可以通过滚动浏览或使用浏览器的搜索功能(按Ctrl+F)快速定位关键词,比如输入「购物车」或「通知」。
  2. 点击任意图标即可进入预览页面,你可以在这里查看图标的静态样式、动画效果、代码示例,甚至调整颜色和大小实时预览效果。

第二步:下载并导入项目


  1. 在预览页面下方,点击「Download」按钮,选择下载格式为.html.svg。推荐选择.svg格式,方便后续在设计软件中编辑。
  2. 网页开发者:直接将 SVG 代码复制到 HTML 文件中,或者通过标签引用 SVG 文件路径。如果需要动画效果,只需添加少量 CSS 代码即可控制动画行为,比如:
    css
    .icon {
      animation: spin s linear infinite; /* 定义旋转动画 */
    }
    @keyframes spin {
      from { transform: rotate(deg); }
      to { transform: rotate(deg); }
    }
    

  3. UI/UX 设计师:将 SVG 文件导入 Sketch、Figma 或 Adobe XD 等工具中,解组后即可自由修改颜色、描边、添加蒙版等。如果需要批量处理图标,推荐使用插件如「SVG Export」进行批量导出和格式转换。

第三步:进阶自定义技巧


  • 颜色调整:用文本编辑器(如 Notepad++)打开 SVG 文件,搜索fill属性,将颜色值替换为你需要的色号(如#FF6B6B)。保存后重新导入设计软件,图标颜色就修改完成啦。
  • 动画参数修改:如果你对默认的动画速度或循环次数不满意,可以在 SVG 代码中找到标签,调整dur(持续时间)、repeatCount(循环次数)等属性。例如:
    xml
    <animate
      attributeName="transform"
      type="rotate"
      from="0 50 50"
      to="360 50 50"
      dur="1s"
      repeatCount="indefinite"
    />
    

  • 图标组合与扩展:将多个图标解组后,通过布尔运算(如合并、相交、减去顶层)创建全新的图形,或者添加文字、渐变效果,打造独一无二的设计元素。

? 跨平台兼容性与优化建议


1. 移动端适配技巧


  • iOS 和 Android:SVG 图标在现代移动浏览器(如 Chrome、Safari)中支持良好,但为了兼容旧版本系统(如 Android 4.0 以下),建议使用SVG-Android 库VectorDrawableCompat进行渲染,确保图标在低端设备上也能流畅显示。
  • React Native 和 Flutter:通过第三方库如react-native-svgflutter_svg,可以直接在代码中引用 Potlab 的 SVG 图标,并实现动画效果。

2. 浏览器兼容性处理


  • IE 浏览器:IE9 及以上版本支持 SVG,但 IE8 及以下不支持。为了优雅降级,可以采用「SVG+PNG 双图方案」:在 HTML 中同时引入 SVG 和 PNG 文件,通过 CSS 媒体查询判断浏览器是否支持 SVG,优先显示 SVG,不支持则显示 PNG。
  • 性能优化:如果项目中使用了大量 SVG 图标,建议通过工具如SVGOMG对文件进行压缩,去除冗余代码,减少文件体积,提升页面加载速度。

3. SEO 与无障碍优化


  • 文本替代:为 SVG 图标添加</code>和<code><desc></code>标签,提供文本描述,帮助搜索引擎和屏幕阅读器理解图标的含义,提升 SEO 和无障碍访问性。</li> <li><strong>避免嵌入式脚本</strong>:Potlab 的图标不包含 JavaScript 脚本,因此不会影响网页的安全策略,但如果自行添加了交互逻辑,需确保代码符合 Content Security Policy (CSP)。</li> </ul><br> <h3>⚔️ <strong>竞品对比:Potlab vs 其他主流图标库</strong></h3><br> <h4>1. <strong>Animista</strong></h4><br> <ul> <li><strong>优势</strong>:专注于 CSS 动画效果,提供大量预设的动画组合,适合快速创建复杂的交互动画。</li> <li><strong>劣势</strong>:以静态图标为主,动画需手动编写 CSS 代码,学习成本较高;资源数量有限,且部分高级效果需付费解锁。</li> <li><strong>Potlab 的优势</strong>:图标自带基础动画,无需额外编码;完全免费且开源,商业使用无限制。</li> </ul><br> <h4>2. <strong>Iconscout</strong></h4><br> <ul> <li><strong>优势</strong>:拥有超过 150 万个图标和插画,资源库极其丰富;支持 Figma、Sketch 等插件集成,使用便捷。</li> <li><strong>劣势</strong>:免费版功能受限,高质量素材需订阅高级版(约 $16 / 月);部分图标设计风格偏向「大众款」,缺乏独特性。</li> <li><strong>Potlab 的优势</strong>:所有资源免费且可商用;图标风格简洁统一,适合追求极简主义的设计师。</li> </ul><br> <h4>3. <strong>Font Awesome</strong></h4><br> <ul> <li><strong>优势</strong>:字体图标方案,文件体积小,加载速度快;社区支持强大,有大量第三方扩展库。</li> <li><strong>劣势</strong>:动画效果依赖 CSS,灵活性较低;图标样式较为固定,难以进行深度定制。</li> <li><strong>Potlab 的优势</strong>:矢量格式支持任意缩放和编辑;动画效果直接内置在图标中,调用更方便。</li> </ul><br> <h3>? <strong>高阶应用场景与创意玩法</strong></h3><br> <h4>1. <strong>数据可视化与信息图表</strong></h4><br> <div>将 Potlab 的图标与折线图、柱状图结合,制作可视化报告或数据看板。例如,用购物车图标表示销售额,用定位图标标记门店位置,通过颜色和大小变化展示数据差异。</div><br> <h4>2. <strong>品牌视觉升级</strong></h4><br> <ul> <li><strong>LOGO 设计</strong>:基于 Potlab 的图标元素进行二次创作,比如将相机图标与字母组合,设计摄影工作室的 LOGO。</li> <li><strong>图标系统</strong>:统一调整所有图标的颜色和描边风格,打造具有品牌辨识度的图标库,确保 APP 或网站的视觉一致性。</li> </ul><br> <h4>3. <strong>交互原型与动效演示</strong></h4><br> <div>在 Axure 或 Mockplus 中导入 Potlab 的动画图标,制作高保真交互原型,向客户或开发团队展示动态效果,减少沟通成本。例如,用加载动画图标演示数据提交过程,用提示图标展示操作反馈。</div><br> <h4>4. <strong>PPT 与演示设计</strong></h4><br> <ul> <li>将 SVG 图标插入 PPT 中,通过「布尔运算」或「变体动画」制作动态图表或转场效果,让演示文稿更生动。</li> <li>利用图标作为视觉锚点,配合「缩放定位」功能突出重点内容,提升信息传达效率。</li> </ul><br> <h3>⚠️ <strong>注意事项与避坑指南</strong></h3><br> <ol> <li><strong>版权合规</strong>:虽然 Potlab 的图标可免费商用,但需保留原作者署名。如果你对图标进行了大幅修改,建议在项目文档中注明「基于 Potlab Icons 修改」。</li> <li><strong>资源局限性</strong>:目前 Potlab 的图标数量有限(约 50 个),如果需要特定主题(如医疗、教育),可能需要结合其他资源库使用。</li> <li><strong>代码维护</strong>:直接修改 SVG 代码时需谨慎,避免破坏文件结构导致图标无法显示。建议先备份原始文件,再进行编辑。</li> <li><strong>性能平衡</strong>:过度使用复杂动画可能影响页面性能,建议对非关键元素的动画设置<code>visibility: hidden</code>或<code>display: none</code>,在需要时再触发。</li> </ol><br> <h3>? <strong>总结:Potlab SVG 图标库值不值得用?</strong></h3><br> <div><strong>绝对值得!</strong> 无论是预算有限的个人设计师,还是追求高效协作的团队,Potlab 都能成为你的「秘密武器」。它用<strong>免费 + 开源 + 可定制</strong>的组合拳,解决了设计师找素材、改样式、做动画的三大痛点,而且操作门槛低,新手也能快速上手。如果你还在为图标资源发愁,不妨花 10 分钟试试 Potlab,相信你会和我一样爱不释手!</div><br> <div>最后再提醒一句:Potlab 官网的访问速度可能受网络环境影响,如果加载缓慢,可以尝试切换浏览器或使用加速器。另外,关注他们的 GitHub 仓库(https://github.com/potlabicons),获取最新图标更新和社区贡献的扩展资源。</div><br> <div><strong>该文章由dudu123.com嘟嘟 ai 导航整理,嘟嘟 AI 导航汇集全网优质网址资源和最新优质 AI 工具</strong></div><br> </div> </div> <!-- 标签和分享 --> <div class="flex flex-col md:flex-row justify-between items-start md:items-center pt-8 mt-8 border-t border-gray-200 dark:border-gray-700"> <div class="mb-4 md:mb-0"> <span class="text-gray-700 dark:text-gray-300 mr-2">标签:</span> <span class="news-tag bg-blue-100 dark:bg-blue-900 text-blue-800 dark:text-blue-200 px-3 py-1 rounded-full text-sm">AI资讯</span> </div> <div class="flex space-x-3"> <span class="text-gray-700 dark:text-gray-300">分享:</span> <a href="javascript:void(0)" onclick="shareToWeChat()" class="social-share w-10 h-10 rounded-full bg-blue-100 dark:bg-blue-900 flex items-center justify-center text-blue-600 dark:text-blue-400"> <i class="fa-brands fa-weixin"></i> </a> <a href="javascript:void(0)" onclick="shareToWeibo('设计师必备!Potlab SVG 动画图标库免费下载,支持矢量自定义颜色大小', window.location.href)" class="social-share w-10 h-10 rounded-full bg-gray-100 dark:bg-gray-700 flex items-center justify-center text-gray-600 dark:text-gray-400"> <i class="fa-brands fa-weibo"></i> </a> <a href="javascript:void(0)" onclick="shareToTwitter('设计师必备!Potlab SVG 动画图标库免费下载,支持矢量自定义颜色大小', window.location.href)" class="social-share w-10 h-10 rounded-full bg-blue-500 flex items-center justify-center text-white"> <i class="fa-brands fa-twitter"></i> </a> <a href="javascript:void(0)" onclick="copyLink()" class="social-share w-10 h-10 rounded-full bg-green-100 dark:bg-green-900 flex items-center justify-center text-green-600 dark:text-green-400"> <i class="fa-solid fa-link"></i> </a> </div> </div> </div> <!-- 上一篇/下一篇 --> <div class="flex flex-col md:flex-row justify-between gap-6 mb-8"> <a href="/ai/4AnYv0REaRgcETHpByHWKDTkHKwyh9wYCDRQF5Omix2.html" class="card group flex-1 bg-white dark:bg-gray-800 rounded-xl shadow-card dark:shadow-card-dark p-5"> <div class="flex items-center"> <i class="fa-solid fa-arrow-left text-gray-500 dark:text-gray-400 mr-3 group-hover:text-blue-600 dark:group-hover:text-blue-400"></i> <div> <p class="text-gray-500 dark:text-gray-400 text-sm mb-1">上一篇</p> <h3 class="font-semibold text-gray-800 dark:text-white group-hover:text-blue-600 dark:group-hover:text-blue-400 line-clamp-2">2025 最新 AI 会议管理工具 Noty.ai 评测:怎么选适合团队的会议助手?</h3> </div> </div> </a> <a href="/ai/gCSIcNrGNDanR9YKBBbZU02jWetLu1YDWrvS1RMIGms.html" class="card group flex-1 bg-white dark:bg-gray-800 rounded-xl shadow-card dark:shadow-card-dark p-5"> <div class="flex items-center text-right flex-row-reverse"> <i class="fa-solid fa-arrow-right text-gray-500 dark:text-gray-400 ml-3 group-hover:text-blue-600 dark:group-hover:text-blue-400"></i> <div> <p class="text-gray-500 dark:text-gray-400 text-sm mb-1">下一篇</p> <h3 class="font-semibold text-gray-800 dark:text-white group-hover:text-blue-600 dark:group-hover:text-blue-400 line-clamp-2">Noty.ai 与传统会议工具对比:88 种语言支持多设备同步提升效率</h3> </div> </div> </a> </div> <!-- 评论区 --> <div class="bg-white dark:bg-gray-800 rounded-xl shadow-card dark:shadow-card-dark p-6"> <div class="flex justify-between items-center mb-6"> <h3 class="text-2xl font-bold text-gray-800 dark:text-white">用户评论 (0)</h3> <button class="bg-blue-600 hover:bg-blue-700 text-white font-medium py-2 px-4 rounded-lg transition flex items-center"> <i class="fa-solid fa-pen mr-2"></i> 发表评论 </button> </div> <div class="space-y-6"> <!-- 暂无评论 --> <div class="text-center py-8"> <i class="fa-regular fa-comments text-5xl text-gray-300 dark:text-gray-600 mb-4"></i> <p class="text-gray-500 dark:text-gray-400">暂无评论,快来发表第一条评论吧!</p> </div> </div> </div> </div> <!-- 右侧边栏 --> <div class="w-full lg:w-1/4"> <!-- 网站信息 --> <div class="bg-white dark:bg-gray-800 rounded-xl shadow-card dark:shadow-card-dark p-6 mb-8"> <div class="flex items-center mb-4"> <div class="w-12 h-12 rounded-lg bg-gradient-to-br from-blue-500 to-indigo-600 flex items-center justify-center mr-4"> <i class="fa-solid fa-robot text-white text-xl"></i> </div> <div> <h3 class="font-bold text-gray-800 dark:text-white">AI导航</h3> <p class="text-gray-600 dark:text-gray-400 text-sm">AI资源与工具导航</p> </div> </div> <p class="text-gray-700 dark:text-gray-300 text-sm"> 汇聚全球最优质的人工智能工具与资源,助力您的创新之旅。关注前沿AI技术发展与实际应用案例。 </p> <div class="flex space-x-3 mt-4"> <a href="javascript:void(0)" onclick="shareToTwitter('设计师必备!Potlab SVG 动画图标库免费下载,支持矢量自定义颜色大小', window.location.href)" class="text-gray-500 hover:text-blue-600 dark:hover:text-blue-400"> <i class="fa-brands fa-twitter"></i> </a> <a href="javascript:void(0)" onclick="shareToWeChat()" class="text-gray-500 hover:text-blue-600 dark:hover:text-blue-400"> <i class="fa-brands fa-weixin"></i> </a> <a href="javascript:void(0)" onclick="shareToWeibo('设计师必备!Potlab SVG 动画图标库免费下载,支持矢量自定义颜色大小', window.location.href)" class="text-gray-500 hover:text-blue-600 dark:hover:text-blue-400"> <i class="fa-brands fa-weibo"></i> </a> </div> </div> <!-- 热门资讯排行榜 --> <div class="bg-white dark:bg-gray-800 rounded-xl shadow-card dark:shadow-card-dark p-6 mb-8"> <h3 class="text-xl font-bold text-gray-800 dark:text-white mb-4 pb-2 border-b border-gray-200 dark:border-gray-700">热门资讯榜</h3> <div class="space-y-4"> <!-- 排行项目 1 --> <a href="/ai/ivkNGQMsss2KrjewJHyz06bOEmQiTJ8jGTi83CiLiXu.html" class="flex items-center group"> <div class="w-8 h-8 rounded-lg bg-gradient-to-br from-yellow-500 to-orange-500 flex items-center justify-center text-white font-bold mr-3 group-hover:scale-110 transition"> 1 </div> <div> <h4 class="font-semibold text-gray-800 dark:text-white group-hover:text-blue-600 dark:group-hover:text-blue-400 transition line-clamp-2"> 学术诚信提升方案:茅茅虫区块链技 </h4> <p class="text-gray-600 dark:text-gray-400 text-sm flex items-center mt-1"> <i class="fa-solid fa-eye mr-1"></i> 740次阅读 </p> </div> </a> <!-- 排行项目 2 --> <a href="/ai/DPFT5tV6Tcl8ih5j24evYm2rU6o6gVAZR7y0dGAdHAs.html" class="flex items-center group"> <div class="w-8 h-8 rounded-lg bg-gradient-to-br from-gray-400 to-gray-500 flex items-center justify-center text-white font-bold mr-3 group-hover:scale-110 transition"> 2 </div> <div> <h4 class="font-semibold text-gray-800 dark:text-white group-hover:text-blue-600 dark:group-hover:text-blue-400 transition line-clamp-2"> 茅茅虫论文助手使用攻略:AI 一 </h4> <p class="text-gray-600 dark:text-gray-400 text-sm flex items-center mt-1"> <i class="fa-solid fa-eye mr-1"></i> 148次阅读 </p> </div> </a> <!-- 排行项目 3 --> <a href="/ai/pFtwTzGaKneKrwvigviIN6FhIUegOVaekKxUsOOv0Pm.html" class="flex items-center group"> <div class="w-8 h-8 rounded-lg bg-gradient-to-br from-amber-700 to-amber-800 flex items-center justify-center text-white font-bold mr-3 group-hover:scale-110 transition"> 3 </div> <div> <h4 class="font-semibold text-gray-800 dark:text-white group-hover:text-blue-600 dark:group-hover:text-blue-400 transition line-clamp-2"> 党政机关如何选 AI 公文工具? </h4> <p class="text-gray-600 dark:text-gray-400 text-sm flex items-center mt-1"> <i class="fa-solid fa-eye mr-1"></i> 720次阅读 </p> </div> </a> <!-- 排行项目 4 --> <a href="/ai/8WClZl97uUzV10ygj6SHGMe3129ok8lLnhV4AXxRi4g.html" class="flex items-center group"> <div class="w-8 h-8 rounded-lg bg-gray-200 dark:bg-gray-700 flex items-center justify-center text-white font-bold mr-3 group-hover:scale-110 transition"> 4 </div> <div> <h4 class="font-semibold text-gray-800 dark:text-white group-hover:text-blue-600 dark:group-hover:text-blue-400 transition line-clamp-2"> 茅茅虫助手全流程解析:从开题到答 </h4> <p class="text-gray-600 dark:text-gray-400 text-sm flex items-center mt-1"> <i class="fa-solid fa-eye mr-1"></i> 848次阅读 </p> </div> </a> <!-- 排行项目 5 --> <a href="/ai/RfGcglzbDbX05q0niVf5UI6DNqMOr6tMf2ujJWUethS.html" class="flex items-center group"> <div class="w-8 h-8 rounded-lg bg-gray-200 dark:bg-gray-700 flex items-center justify-center text-white font-bold mr-3 group-hover:scale-110 transition"> 5 </div> <div> <h4 class="font-semibold text-gray-800 dark:text-white group-hover:text-blue-600 dark:group-hover:text-blue-400 transition line-clamp-2"> 如何用茅茅虫生成摘要提纲?分段式 </h4> <p class="text-gray-600 dark:text-gray-400 text-sm flex items-center mt-1"> <i class="fa-solid fa-eye mr-1"></i> 264次阅读 </p> </div> </a> <!-- 排行项目 6 --> <a href="/ai/FMNW30wniasAozli5uR6qy9TjaQulx5ohz4W9BKfnVC.html" class="flex items-center group"> <div class="w-8 h-8 rounded-lg bg-gray-200 dark:bg-gray-700 flex items-center justify-center text-white font-bold mr-3 group-hover:scale-110 transition"> 6 </div> <div> <h4 class="font-semibold text-gray-800 dark:text-white group-hover:text-blue-600 dark:group-hover:text-blue-400 transition line-clamp-2"> 艺术家如何用 Ai Concep </h4> <p class="text-gray-600 dark:text-gray-400 text-sm flex items-center mt-1"> <i class="fa-solid fa-eye mr-1"></i> 913次阅读 </p> </div> </a> <!-- 排行项目 7 --> <a href="/ai/TEx5eaOPAaUbo5naVbK9zkzZIJLWH3OKz9BmP0UKw08.html" class="flex items-center group"> <div class="w-8 h-8 rounded-lg bg-gray-200 dark:bg-gray-700 flex items-center justify-center text-white font-bold mr-3 group-hover:scale-110 transition"> 7 </div> <div> <h4 class="font-semibold text-gray-800 dark:text-white group-hover:text-blue-600 dark:group-hover:text-blue-400 transition line-clamp-2"> Ai Concept Gener </h4> <p class="text-gray-600 dark:text-gray-400 text-sm flex items-center mt-1"> <i class="fa-solid fa-eye mr-1"></i> 56次阅读 </p> </div> </a> <!-- 查看全部按钮 --> <!-- <div class="pt-4"> <a href="news.php" class="text-blue-600 dark:text-blue-400 hover:underline text-sm flex items-center"> 查看全部热门资讯 <i class="fa-solid fa-arrow-right ml-2 text-xs"></i> </a> </div> --> </div> </div> <!-- 推荐资讯 --> <div class="bg-white dark:bg-gray-800 rounded-xl shadow-card dark:shadow-card-dark p-6"> <h3 class="text-xl font-bold text-gray-800 dark:text-white mb-4 pb-2 border-b border-gray-200 dark:border-gray-700">推荐阅读</h3> <div class="space-y-5"> <!-- 推荐项目 --> <a href="/ai/HCPjacLwlItn0HF20vCTJIISr4cLV3PATLdS6wLdpsA.html" class="group flex items-start"> <div class="w-16 h-16 rounded-lg overflow-hidden flex-shrink-0 mr-4"> <img src="https://cdn.yyp.net/wp-content/uploads/2025/07/50c7b316121f86436bfd1585e0d2bb60.jpg" alt="麻辣社区智能检测纠错功能:2025 新版优化用户体验升级" class="w-full h-full object-cover group-hover:scale-105 transition"> </div> <div> <h4 class="font-semibold text-gray-800 dark:text-white group-hover:text-blue-600 dark:group-hover:text-blue-400 transition line-clamp-2"> 麻辣社区智能检测纠错功能:20 </h4> <p class="text-gray-600 dark:text-gray-400 text-sm mt-1"> <i class="fa-solid fa-calendar-days mr-1"></i> 2025-07-18 </p> </div> </a> <!-- 推荐项目 --> <a href="/ai/dkyYdVReYb0she2u3ywyzGwhjYoI1F7cU5rFUkJKbQQ.html" class="group flex items-start"> <div class="w-16 h-16 rounded-lg overflow-hidden flex-shrink-0 mr-4"> <img src="https://cdn.yyp.net/wp-content/uploads/2025/06/5d3cf80467b9ed423d43f2829cd0a73d.jpg" alt="emojiu.cc 如何免费生成个性化表情符号?适用于社交媒体的表情下载攻略" class="w-full h-full object-cover group-hover:scale-105 transition"> </div> <div> <h4 class="font-semibold text-gray-800 dark:text-white group-hover:text-blue-600 dark:group-hover:text-blue-400 transition line-clamp-2"> emojiu.cc 如何免费生 </h4> <p class="text-gray-600 dark:text-gray-400 text-sm mt-1"> <i class="fa-solid fa-calendar-days mr-1"></i> 2025-07-18 </p> </div> </a> <!-- 推荐项目 --> <a href="/ai/LHKaMXuAZz0XRmCqcVD5VTFRbNigPHlNVgUtriGpJIA.html" class="group flex items-start"> <div class="w-16 h-16 rounded-lg overflow-hidden flex-shrink-0 mr-4"> <img src="https://cdn.yyp.net/wp-content/uploads/2025/06/e1774a832411dfb8ebae8cff08348efe.jpg" alt="积加 ERP vs 传统工具对比:智能补货与库存实时监控如何优化供应链?" class="w-full h-full object-cover group-hover:scale-105 transition"> </div> <div> <h4 class="font-semibold text-gray-800 dark:text-white group-hover:text-blue-600 dark:group-hover:text-blue-400 transition line-clamp-2"> 积加 ERP vs 传统工具对 </h4> <p class="text-gray-600 dark:text-gray-400 text-sm mt-1"> <i class="fa-solid fa-calendar-days mr-1"></i> 2025-07-18 </p> </div> </a> <!-- 推荐项目 --> <a href="/ai/3SzS8j4st8FWx2HKgWLKDCwmX9EduqCftlqZaTErkCc.html" class="group flex items-start"> <div class="w-16 h-16 rounded-lg overflow-hidden flex-shrink-0 mr-4"> <img src="https://cdn.yyp.net/wp-content/uploads/2025/07/b78b9af9209d1ec086c70112965bf1dc.jpg" alt="自动生成字幕准确吗?实测这款工具支持 100 + 语言,精准度超高!" class="w-full h-full object-cover group-hover:scale-105 transition"> </div> <div> <h4 class="font-semibold text-gray-800 dark:text-white group-hover:text-blue-600 dark:group-hover:text-blue-400 transition line-clamp-2"> 自动生成字幕准确吗?实测这款工 </h4> <p class="text-gray-600 dark:text-gray-400 text-sm mt-1"> <i class="fa-solid fa-calendar-days mr-1"></i> 2025-07-18 </p> </div> </a> <!-- 推荐项目 --> <a href="/ai/kDMDRWTAMk9KI8UTotByPAMiYUlXK3CYApm7Mmx5Rsk.html" class="group flex items-start"> <div class="w-16 h-16 rounded-lg overflow-hidden flex-shrink-0 mr-4"> <img src="https://cdn.yyp.net/wp-content/uploads/2025/07/5c28a1f5d8b499e226610f582f8993af.jpg" alt="iO Paint 功能全解析:融合 LaMa 模型的专业级图像处理体验" class="w-full h-full object-cover group-hover:scale-105 transition"> </div> <div> <h4 class="font-semibold text-gray-800 dark:text-white group-hover:text-blue-600 dark:group-hover:text-blue-400 transition line-clamp-2"> iO Paint 功能全解析: </h4> <p class="text-gray-600 dark:text-gray-400 text-sm mt-1"> <i class="fa-solid fa-calendar-days mr-1"></i> 2025-07-18 </p> </div> </a> </div> </div> </div> </div> </main> <!-- 页脚 --> <footer class="bg-gray-100 dark:bg-gray-900 border-t border-gray-200 dark:border-gray-800 mt-16 py-12"> <div class="container mx-auto px-4"> <div class="grid grid-cols-1 md:grid-cols-4 gap-8"> <div> <div class="flex items-center mb-4"> <div class="w-10 h-10 rounded-lg bg-gradient-to-br from-blue-500 to-indigo-600 flex items-center justify-center"> <i class="fa-solid fa-robot text-white text-xl"></i> </div> <span class="text-xl font-bold text-gray-800 dark:text-white ml-2">AI导航</span> </div> <p class="text-gray-600 dark:text-gray-400 text-sm"> 汇聚全球最优质的人工智能工具与资源,助力您的创新之旅。 </p> </div> <div> <h3 class="text-lg font-semibold mb-4 text-gray-800 dark:text-white">快速链接</h3> <ul class="space-y-2"> <li><a href="/" class="text-gray-600 dark:text-gray-400 hover:text-blue-600 dark:hover:text-blue-400 transition">首页</a></li> <li><a href="/hotsites/" class="text-gray-600 dark:text-gray-400 hover:text-blue-600 dark:hover:text-blue-400 transition">热门工具</a></li> <li><a href="/newsites/" class="text-gray-600 dark:text-gray-400 hover:text-blue-600 dark:hover:text-blue-400 transition">最新资源</a></li> <li><a href="/ai/" class="text-gray-600 dark:text-gray-400 hover:text-blue-600 dark:hover:text-blue-400 transition">Ai资讯</a></li> </ul> </div> <div> <h3 class="text-lg font-semibold mb-4 text-gray-800 dark:text-white">热门分类</h3> <ul class="space-y-2"> <li><a href="#" class="text-gray-600 dark:text-gray-400 hover:text-blue-600 dark:hover:text-blue-400 transition">对话AI</a></li> <li><a href="#" class="text-gray-600 dark:text-gray-400 hover:text-blue-600 dark:hover:text-blue-400 transition">图像生成</a></li> <li><a href="#" class="text-gray-600 dark:text-gray-400 hover:text-blue-600 dark:hover:text-blue-400 transition">编程开发</a></li> <li><a href="#" class="text-gray-600 dark:text-gray-400 hover:text-blue-600 dark:hover:text-blue-400 transition">视频处理</a></li> </ul> </div> <div> <h3 class="text-lg font-semibold mb-4 text-gray-800 dark:text-white">订阅更新</h3> <p class="text-gray-600 dark:text-gray-400 text-sm mb-4"> 获取最新AI工具和资源推荐 </p> <div class="flex"> <input type="email" placeholder="您的邮箱地址" class="flex-1 px-4 py-2 rounded-l-lg border border-gray-300 dark:border-gray-700 bg-white dark:bg-gray-800 text-gray-800 dark:text-gray-200 focus:outline-none focus:ring-2 focus:ring-blue-500" > <button class="bg-blue-600 text-white px-4 py-2 rounded-r-lg hover:bg-blue-700 transition"> <i class="fa-solid fa-paper-plane"></i> </button> </div> </div> </div> <div class="border-t border-gray-200 dark:border-gray-800 mt-10 pt-6 flex flex-col md:flex-row justify-between items-center"> <p class="text-gray-500 dark:text-gray-500 text-sm"> © 2023 AI导航. 保留所有权利。 </p> <p class="text-gray-500 dark:text-gray-500 text-sm"> <a href="http://beian.miit.gov.cn/" rel="nofollow">ICP备案:豫B2-20110008-14</a> </p> <div class="flex space-x-4 mt-4 md:mt-0"> <a href="javascript:void(0)" onclick="shareToWeChat()" class="text-gray-500 dark:text-gray-500 hover:text-blue-600 dark:hover:text-blue-400 transitio"> <i class="fa-brands fa-weixin"></i> </a> <a href="javascript:void(0)" onclick="shareToWeibo('AI导航', window.location.href)" class="text-gray-500 dark:text-gray-500 hover:text-blue-600 dark:hover:text-blue-400 transitio"> <i class="fa-brands fa-weibo"></i> </a> <a href="javascript:void(0)" onclick="shareToTwitter('AI导航', window.location.href)" class="text-gray-500 dark:text-gray-500 hover:text-blue-600 dark:hover:text-blue-400 transition"> <i class="fa-brands fa-twitter"></i> </a> </div> </div> </div> </footer> <script src="/staticai/qrcode.min.js"></script> <script> // 分享功能 function shareToWeChat() { // 获取当前页面URL const url = window.location.href; // 创建二维码容器 const qrModal = document.createElement('div'); qrModal.className = 'fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50'; const qrContainer = document.createElement('div'); qrContainer.className = 'bg-white dark:bg-gray-800 p-6 rounded-xl shadow-lg max-w-sm w-full relative'; // 创建标题 const title = document.createElement('h3'); title.className = 'text-xl font-bold text-gray-800 dark:text-white mb-4 text-center'; title.textContent = '微信扫码分享'; // 创建关闭按钮 const closeBtn = document.createElement('button'); closeBtn.className = 'absolute top-4 right-4 text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200'; closeBtn.innerHTML = '<i class="fa-solid fa-times"></i>'; closeBtn.onclick = () => document.body.removeChild(qrModal); // 创建QR码容器 const qrBox = document.createElement('div'); qrBox.className = 'flex justify-center items-center mb-4'; // 提示文字 const hint = document.createElement('p'); hint.className = 'text-center text-gray-600 dark:text-gray-400 text-sm'; hint.textContent = '请使用微信"扫一扫"扫描上方二维码'; // 组装DOM qrContainer.appendChild(title); qrContainer.appendChild(qrBox); qrContainer.appendChild(hint); qrContainer.appendChild(closeBtn); qrModal.appendChild(qrContainer); document.body.appendChild(qrModal); // 检查QRCode库是否已加载 if (typeof QRCode === 'function') { // 使用QRCode.js生成二维码 try { new QRCode(qrBox, { text: url, width: 200, height: 200, colorDark: "#000000", colorLight: "#ffffff", correctLevel: QRCode.CorrectLevel.H }); } catch (e) { // 如果生成二维码失败,回退到使用图片形式 qrBox.innerHTML = `<img src="https://api.qrserver.com/v1/create-qr-code/?size=200x200&data=${encodeURIComponent(url)}" width="200" height="200" alt="二维码">`; } } else { // 如果QRCode库未加载,使用外部API生成二维码图片 qrBox.innerHTML = `<img src="https://api.qrserver.com/v1/create-qr-code/?size=200x200&data=${encodeURIComponent(url)}" width="200" height="200" alt="二维码">`; } // 点击模态框背景关闭 qrModal.addEventListener('click', function(e) { if (e.target === qrModal) { document.body.removeChild(qrModal); } }); } function shareToWeibo(title, url) { const weiboUrl = `http://service.weibo.com/share/share.php?url=${encodeURIComponent(url)}&title=${encodeURIComponent(title)}`; window.open(weiboUrl, '_blank', 'width=700,height=500'); } function shareToTwitter(title, url) { const twitterUrl = `https://twitter.com/intent/tweet?text=${encodeURIComponent(title)}&url=${encodeURIComponent(url)}`; window.open(twitterUrl, '_blank', 'width=700,height=500'); } // 深色模式切换 const themeToggle = document.getElementById('theme-toggle'); const prefersDarkScheme = window.matchMedia('(prefers-color-scheme: dark)'); // 初始化主题 if (localStorage.getItem('theme') === 'dark' || (!localStorage.getItem('theme') && prefersDarkScheme.matches)) { document.documentElement.classList.add('dark'); } else { document.documentElement.classList.remove('dark'); } themeToggle.addEventListener('click', () => { if (document.documentElement.classList.contains('dark')) { document.documentElement.classList.remove('dark'); localStorage.setItem('theme', 'light'); } else { document.documentElement.classList.add('dark'); localStorage.setItem('theme', 'dark'); } }); // 移动端菜单切换 const mobileMenuButton = document.getElementById('mobile-menu-button'); const mobileNav = document.getElementById('mobile-nav'); mobileMenuButton.addEventListener('click', () => { mobileNav.classList.toggle('open'); }); // 处理系统主题变化 prefersDarkScheme.addEventListener('change', e => { if (!localStorage.getItem('theme')) { if (e.matches) { document.documentElement.classList.add('dark'); } else { document.documentElement.classList.remove('dark'); } } }); </script> </body> </html> <script> function copyLink() { const url = window.location.href; // 使用现代API复制到剪贴板 if (navigator.clipboard && navigator.clipboard.writeText) { navigator.clipboard.writeText(url) .then(() => { showNotification('链接已复制到剪贴板'); }) .catch(err => { console.error('无法复制链接: ', err); fallbackCopyLink(url); }); } else { fallbackCopyLink(url); } } function fallbackCopyLink(text) { // 创建临时输入框 const input = document.createElement('input'); input.style.position = 'fixed'; input.style.opacity = 0; input.value = text; document.body.appendChild(input); input.select(); // 尝试复制 try { const successful = document.execCommand('copy'); if (successful) { showNotification('链接已复制到剪贴板'); } else { showNotification('复制失败,请手动复制链接', 'error'); } } catch (err) { console.error('无法复制链接: ', err); showNotification('复制失败,请手动复制链接', 'error'); } // 移除临时元素 document.body.removeChild(input); } function showNotification(message, type = 'success') { // 创建通知元素 const notification = document.createElement('div'); notification.className = `fixed bottom-4 right-4 px-6 py-3 rounded-lg shadow-lg text-white ${type === 'success' ? 'bg-green-500' : 'bg-red-500'} transition-all duration-300 transform translate-y-full opacity-0`; notification.textContent = message; document.body.appendChild(notification); // 显示通知 setTimeout(() => { notification.style.transform = 'translateY(0)'; notification.style.opacity = '1'; }, 10); // 3秒后隐藏通知 setTimeout(() => { notification.style.transform = 'translateY(full)'; notification.style.opacity = '0'; // 动画结束后移除元素 setTimeout(() => { document.body.removeChild(notification); }, 300); }, 3000); } </script> </body> </html>