<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HTML iframe嵌套页面示例</title>
</head>
<body>
<h1>使用 iframe 嵌套页面的示例</h1>
<p>下面是一个嵌套外部网页的 iframe 示例:</p>
<!-- 使用 iframe 标签嵌入另一个网页 -->
<iframe src="https://www.example.com" width="600" height="400" title="嵌套的页面"></iframe>
<p>iframe 元素允许在一个 HTML 文档中嵌入另一个 HTML 页面。上述代码中,我们通过设置 <code>src</code> 属性指定了要嵌入的页面 URL。</p>
<p><code>width</code> 和 <code>height</code> 属性用于控制 iframe 的尺寸,而 <code>title</code> 属性提供了 iframe 的描述性文本,有助于提高可访问性。</p>
</body>
</html>
上一篇:怎么将网页另存为html
Laravel PHP 深圳智简公司。版权所有©2023-2043 LaravelPHP 粤ICP备2021048745号-3
Laravel 中文站