Claude 用真实 HTML 在画布内构建交互网站

Claude 现在可以将文本、按钮和其他网页元素嵌入复杂的图形和 3D 效果中。网页一直面临一种取舍。标准 HTML 元素可点击、可选中,也能被屏幕阅读器读取,但很难在视觉上进行扭曲变换。Canvas 让你想画什么就画什么,但浏览器把它当作一张平面图像,你无法选中其中的文本,也无法点击其中的链接。HTML-in-Canvas 改变了这一点:它把真实的页面元素放进 canvas 图形中,同时让它们保持完全可交互。
Felix Rieseberg 在 Anthropic 负责 Claude 相关工作。他在 X 上写道,借助这一功能,Claude 现在能构建“奇特而美丽的网站”,并补充说这让他想起 Flash 时代。一个演示页面展示了 15 个示例,包括以针织图案、3D 立方体或分层爆炸视图呈现的网站。内容依然是真实的文本,可以高亮和复制。
Google 正在将 HTML-in-Canvas 发展为一项网页标准,同时兼顾交互性与可访问性。该功能从版本 157 起在 Chrome 和 Edge 中可用,从版本 5.11492 起在 Claude 桌面应用中可用。Safari 和 Firefox 目前尚不支持。用户需要在提示词中明确要求 Claude 使用 HTML-in-Canvas。Claude 在视觉任务上正变得越来越有创造力。最近,Claude Fable 5.2 用自己编写的 Python 代码,一笔一笔绘制出了照片级写实的艺术作品。
不带炒作的 AI 新闻——由人类精选
译文由英文原文机器翻译,术语按行业惯例统一,可在文末展开原文核对。
查看英文原文(Claude now builds interactive websites inside canvas graphics, reviving the Flash era with real HTML)
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
原文为英文,正文由自动抓取并保留原文。
原文发布于 The Decoder(Claude now builds interactive websites inside canvas graphics, reviving the Flash era with real HTML),标题、摘要与正文由机器翻译,术语按行业惯例统一,未经人工逐句校订。