<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>浏览器原生 on 技术博客 - 有条工具</title><link>/blog/tags/%E6%B5%8F%E8%A7%88%E5%99%A8%E5%8E%9F%E7%94%9F/</link><description>Recent content in 浏览器原生 on 技术博客 - 有条工具</description><generator>Hugo -- 0.147.7</generator><language>zh-cn</language><copyright>2024-2025 有条工具技术博客</copyright><lastBuildDate>Wed, 02 Dec 2026 08:30:00 +0800</lastBuildDate><atom:link href="/blog/tags/%E6%B5%8F%E8%A7%88%E5%99%A8%E5%8E%9F%E7%94%9F/feed.xml" rel="self" type="application/rss+xml"/><item><title>不装 html2canvas：用 SVG foreignObject 把网页拍成 PNG</title><link>/blog/articles/svg-foreignobject-screenshot/</link><pubDate>Wed, 02 Dec 2026 08:30:00 +0800</pubDate><guid>/blog/articles/svg-foreignobject-screenshot/</guid><description>「把页面上的这张奖状保存成图片」——听起来该请 html2canvas 出山，但那个库要解析整个 CSS 盒模型重画一遍。站内奖状生成器的批量导出走了另一条路：SVG 的 foreignObject 让 HTML 原生住进 SVG，再借 drawImage 落到 canvas。这篇讲清这条链路的三个关键约束，以及它为什么快。</description></item></channel></rss>