生成器
iframe 嵌入代码生成器
所有重要属性 — loading、referrerpolicy、allow、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。请用 测试工具确认.