跳到正文
The Decoder·· 19 天前精选

Claude网页创作玩法:用HTML-in-Canvas保留画布内文字与交互

AI 导读

Jonathan Kemper介绍让Claude使用HTML-in-Canvas生成网页的方法,将真实文字和按钮融入复杂图形,同时保留选择、复制与交互。提示词需要明确指定HTML-in-Canvas。报道列出的兼容范围为Chrome、Edge 157起及Claude桌面版5.11492起,Safari和Firefox暂不支持。

推荐理由

为交互式视觉网页提供具体尝试方向。原文正文+原站 RSS 时间核验;员工原帖与演示访问受限,兼容范围按报道保留,效果未复测。

正文 · 原文

Claude can now embed text, buttons, and other web elements into complex graphics and 3D effects. Web pages have always faced a tradeoff. Standard HTML elements are clickable, selectable, and readable by screen readers, but they're hard to warp visually. Canvas lets you draw anything you want, but the browser treats it like a flat image. You can't select text or click links inside it. HTML-in-Canvas changes that by placing real page elements inside canvas graphics while keeping them fully interactive.

Felix Rieseberg works on Claude at Anthropic. He wrote on X that Claude can now build "bizarre & beautiful sites" with the feature, adding that it reminds him of the Flash era. A demo page shows 15 examples, including websites rendered as knitting patterns, 3D cubes, or exploded layer views. The content stays as real text you can highlight and copy.

Google is developing HTML-in-Canvas as a web standard that preserves both interactivity and accessibility. The feature works in Chrome and Edge starting with version 157 and in Claude's desktop apps from version 5.11492. Safari and Firefox don't support it yet. Users need to ask Claude for HTML-in-Canvas explicitly in their prompt. Claude keeps getting more creative with visual tasks. Recently, Claude Fable 5.2 painted photorealistic artwork stroke by stroke using self-written Python code.

AI News Without the Hype – Curated by Humans

Subscribe to THE DECODER for ad-free reading, a weekly AI newsletter, our exclusive "AI Radar" frontier report six times a year, full archive access, and access to our comment section.

来源:The Decoder · the-decoder.com