HTML Iframe 生成器
生成 <iframe>——设置源 URL、标题、尺寸,以及加载、引荐来源策略和全屏选项,然后复制可直接使用的 HTML。免费、即时,不使用 AI。
输入
出于无障碍考虑需要填写;留空时将使用默认值。
设置
为元素添加自定义 CSS 类。多个类名请用空格分隔。
输出
HTML
这对您有帮助吗?
使用此工具的更多方式
REST API
curl -X POST https://api.iotools.cloud/v1/tool/html-generator/iframe \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"customSource": "https://example.com",
"customTitle": "",
"customAllowFullscreen": "",
"customLoading": "eager",
"customReferrerPolicy": "no-referrer",
"customHeight": "",
"customWidth": "",
"customClasses": ""
}'替换成您账户中的密钥。工具的字段即为请求体——没有额外包装。
让 AI 代理执行
Use the IOTools `html-generator__iframe` tool (HTML Iframe Generator) on this input:
YOUR_INPUT_HERE将此粘贴给任何已连接 IOTools MCP 服务器的代理,再加上您的输入内容。
嵌入式小组件
<iframe
src="https://iotools.cloud/embed/html-generator/iframe/"
width="100%" height="520" frameborder="0" scrolling="no" loading="lazy"
title="HTML Iframe 生成器 — iotools.cloud"
sandbox="allow-scripts allow-forms allow-same-origin allow-downloads allow-popups allow-popups-to-escape-sandbox"
allow="clipboard-write"
style="width:100%;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden"></iframe>
<script src="https://iotools.cloud/embed.js" async></script>把它放到您自己的页面上——免费,无需密钥,只需保留一个反向链接。
| 每次 API/MCP 调用费用 | 5 积分起 |
|---|---|
| 需要更多积分? | 查看定价 |
也可通过
使用指南
创建可直接粘贴使用的 <iframe>——设置源 URL、无障碍标题、尺寸,以及加载、引荐来源策略和全屏选项,然后复制生成的 HTML。
完全在您的浏览器中运行:无需 AI 调用,不消耗积分,也没有网络往返。输入时输出即时更新。
使用方法
- 设置 源 URL(必填)和 标题——每个 iframe 都需要标题以满足无障碍要求;留空时将使用 "Embedded content"。
- 在 设置 中调整加载方式、引荐来源策略、全屏权限和尺寸。
- 复制或下载生成的 HTML。
为什么没有实时预览?
输出的是未经过滤的原始标记,而在本页直接嵌入任意第三方 URL 并不安全。将代码粘贴到您自己的页面中即可查看实际效果。
htmliframeembedgenerator