Skip to content
IframeViewer

生成器

iframe 嵌入代码生成器

所有重要属性 — loading、referrerpolicy、allow、sandbox — 加上响应式容器与各框架惯用的输出。预览渲染的正是生成的代码。

来源

来源

必填
尺寸

尺寸

外观

外观

行为

行为

权限(allow)

权限(allow)

已选 1 项
sandbox

sandbox

安全
embed.html
<iframe
  src="https://example.com/"
  title="Embedded content"
  width="100%"
  height="600"
  loading="lazy"
  referrerpolicy="strict-origin-when-cross-origin"
  allow="fullscreen"
  allowfullscreen
  style="border:0;border-radius:12px;max-width:100%"
></iframe>
实时预览 — 渲染的正是生成的代码

预览空白?目标网站可能发送了 X-Frame-Options 或 frame-ancestors。请用 测试工具确认.