Expand your HTML skills through an MDN Fellowship - Apply by April 1 http://mzl.la/MDNFellowship

mozilla

版本 346213 / <iframe>

  • 版本网址缩略名: HTML/Element/iframe
  • 版本标题: <iframe>
  • 版本 id: 346213
  • 创建于:
  • 创建者: ZhangJianxiang
  • 是否是当前版本?
  • 评论

修订内容

Summary

The HTML <iframe> Element (or HTML inline frame element) represents a nested browsing context, effectively embedding another HTML page into the current page. Each browsing context has its own session history and active document. The browsing context that contains the embedded content is called the parent browsing context. The top-level browsing context (which has no parent) is typically the browser window.

  • Content categories Flow content, phrasing content, embedded content, interactive content, palpable content.
  • Permitted contentSpecial, see prose
  • Tag omission {{no_tag_omission}}
  • Permitted parent elements Any element that accepts embedded content.
  • DOM interface {{domxref("HTMLIFrameElement")}}

Attributes

This element includes the global attributes.

{{htmlattrdef("align")}} {{deprecated_inline("html4.01")}}, {{obsolete_inline("html5")}}
The alignment of this element with respect to the surrounding context.
{{htmlattrdef("frameborder")}} {{HTMLVersionInline(4)}} only
The value 1 (the default) tells the browser to draw a border between this frame and every other frame. The value 0 tells the browser not to draw a border between this frame and other frames.
{{htmlattrdef("height")}}
Indicates the height of the frame {{HTMLVersionInline(5)}} in CSS pixels, or {{HTMLVersionInline(4.01)}} in pixels or as a percentage.
{{htmlattrdef("longdesc")}} {{HTMLVersionInline(4)}} only
A URI of a long description of the frame. Due to widespread misuse, this is not helpful for non-visual browsers.
{{htmlattrdef("marginheight")}} {{HTMLVersionInline(4)}} only
The amount of space in pixels between the frame's content and its top and bottom margins.
{{htmlattrdef("marginwidth")}} {{HTMLVersionInline(4)}} only
The amount of space in pixels between the frame's content and its left and right margins.
{{htmlattrdef("mozallowfullscreen")}} {{non-standard_inline}}
In Gecko 9.0 or later, this attribute can be set to true if the frame is allowed to be placed into full screen mode by calling its {{domxref("element.mozRequestFullScreen()")}} method. If this isn't set, the element can't be placed into full screen mode.
{{htmlattrdef("webkitallowfullscreen")}} {{non-standard_inline}}
In Chrome 17 or later (and maybe earlier), this attribute can be set to true if the frame is allowed to be placed into full screen mode by calling its {{domxref("element.webkitRequestFullScreen()")}} method. If this isn't set, the element can't be placed into full screen mode.
{{htmlattrdef("mozapp")}} {{non-standard_inline}} {{B2GOnlyInline}}
For frames hosting an open web app, this specifies the URL of the app manifest. This ensures that the app is loaded with the right permissions. See Using the Browser API for details. Available in Gecko 13.0 and later.
{{htmlattrdef("mozbrowser")}} {{non-standard_inline}} {{B2GOnlyInline}}
Indicates that the frame is to appear like a top-level browser window to the embedded content. This means that window.top, window.parent, window.frameElement, etc. will not reflect the frame hierarchy. This allows for a web browser UI to be implemented entirely with web technology, given the right permissions. See Using the Browser API for details. Available in Gecko 13.0 and later.
{{htmlattrdef("name")}}
A name for the embedded browsing context (or frame). This can be used as the value of the target attribute of an {{HTMLElement("a")}} or {{HTMLElement("form")}} element, or the formtarget attribute of an {{HTMLElement("input")}} or {{HTMLElement("button")}} element.
{{htmlattrdef("remote")}} {{non-standard_inline}} {{B2GOnlyInline}}
Load the frame's page in a separate content process.
{{htmlattrdef("scrolling")}} {{HTMLVersionInline(4)}} only
Enumerated attribute indicating when the browser should provide a scroll bar (or other scrolling device) for the frame:
  • auto: Only when needed.
  • yes: Always provide a scroll bar.
  • no: Never provide a scoll bar.
{{htmlattrdef("sandbox")}} {{HTMLVersionInline(5)}} only
如果指定了空字符串,该属性对呈现在iframe框架中的内容启用一些额外的限制条件。属性值可以是用空格分隔的一系列指定的字符串。有效的值有:
 
  • allow-same-origin: 允许将内容作为普通来源对待。如果未使用该关键字,嵌入的内容将被视为一个独立的源。
  • allow-top-navigation:嵌入的页面的上下文可以导航(加载)内容到顶级的浏览上下文环境(browsing context)。如果未使用该关键字,这个操作将不可用。
  • allow-forms: 允许嵌入的浏览上下文可以提交表单。如果该关键字未使用,该操作将不可用。
  • allow-scripts: 允许嵌入的浏览上下文运行脚本(但不能window创建弹窗)。如果该关键字未使用,这项操作不可用。

注意:

  • 当被嵌入的文档与主页面同源时,强烈建议不要同时使用 allow-scripts 和allow-same-origin ,否则的话将允许嵌入的文档通过代码删除 sandbox 属性。虽然你可以这么做,但是这样的话其安全性还不如不用sandbox。
  • 如果攻击者可以将潜在的恶意内容往用户的已沙箱化的iframe中显示,那么沙箱操作的安全性将不再可靠。推荐把这种内容放置到独立的专用域中,减小可能的损失。[Sandboxing in general is only of minimal help if the attacker can arrange for the potentially hostile content to be displayed in the user's browser outside a sandboxed iframe. It is recommended that such content should be served from a separate dedicated domain, to limit the potential damage.]
{{htmlattrdef("seamless")}} {{HTMLVersionInline(5)}} only
该布尔属性指示浏览器将iframe渲染成容器页面文档的一部分。例如,通过打被包含的文档的链接,在iframe页面的样式被渲染之前,父页面的CSS样式就可以应用在iframe中(除非被其他设置阻止)。
{{htmlattrdef("src")}}
The URL of the page to embed.
{{htmlattrdef("srcdoc")}} {{HTMLVersionInline(5)}} only
该属性值可以是HTML代码,这些代码会被渲染到iframe中,如果同时指定了src属性,srcdoc会覆盖src所指向的页面。该属性最好能与sandbox和seamless属性一起使用。
{{htmlattrdef("width")}}
Indicates the width of the frame {{HTMLVersionInline(5)}} in CSS pixels, or {{HTMLVersionInline(4.01)}} in pixels or as a percentage.

脚本

内联的框架,就像 {{HTMLElement("frame")}} 元素一样,会加入 window.frames 伪数组中。

From the DOM iframe element, scripts can get access to the window object of the included HTML page via the contentWindow property. The contentDocument property refers to the document element inside the iframe (this is equivalent to contentWindow.document), but is not supported by Internet Explorer versions before IE8.

From the inside of a frame, a script can get a reference to the parent window via window.parent.

Scripts trying to access a frame's content are subject to the same-origin policy, and cannot access most of the properties in the other window object if it was loaded from a different domain. This also applies to a script inside a frame trying to access its parent window. Cross-domain communication can still be achieved with window.postMessage.

Example

<script type="text/javascript">
  var iframe = window.getElementsByTagName( "iframe" )[ 0 ];
  alert( "Frame title: " + iframe.contentWindow.title );
</script>


<iframe src="page.html" width="300" height="300">
  <p>Your browser does not support iframes.</p>
</iframe>

Notes

{{gecko_callout_heading("6.0")}}

Starting in Gecko 6.0 {{geckoRelease("6.0")}}, rendering of inline frames correctly respects the borders of their containing element when they're rounded using {{cssxref("border-radius")}}.

Specifications

Specification Status Comment
{{SpecName('HTML WHATWG', 'the-iframe-element.html#the-iframe-element', '<iframe>')}} {{Spec2('HTML WHATWG')}}  
{{SpecName('HTML5 W3C', 'the-iframe-element.html#the-b-element', '<iframe>')}} {{Spec2('HTML5 W3C')}}  
{{SpecName('HTML4.01', 'frames.html#h-16.5', '<iframe>')}} {{Spec2('HTML4.01')}}  

Browser compatibility

{{CompatibilityTable}}

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support 1.0 {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}}
sandbox 4 {{CompatGeckoDesktop("17.0")}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}}
seamless 4 {{CompatNo}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}}
srcdoc 4 {{CompatNo}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}}
allowfullscreen 17 {{property_prefix("webkit")}} {{CompatGeckoDesktop("9.0")}} {{property_prefix("moz")}} {{CompatNo}} {{CompatNo}} {{CompatNo}}
Feature Android Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}} {{CompatVersionUnknown}}
sandbox {{CompatUnknown}} {{CompatGeckoMobile("17.0")}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}}
seamless {{CompatUnknown}} {{CompatNo}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}}
srcdoc {{CompatUnknown}} {{CompatNo}} {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}}
allowfullscreen {{CompatUnknown}} {{CompatGeckoMobile("9.0")}}{{property_prefix("moz")}} {{CompatNo}} {{CompatNo}} {{CompatNo}}
{{HTML:Element_Navigation}}

修订版来源

<h2 id="Summary">Summary</h2>
<p>The <strong>HTML <code>&lt;iframe&gt;</code> Element</strong> (or <em>HTML inline frame element</em>) represents a nested browsing context, effectively embedding another HTML page into the current page. Each browsing context has its own session history and active document. The browsing context that contains the embedded content is called the <dfn id="parent">parent</dfn> browsing context. The <dfn id="top-level">top-level</dfn> browsing context (which has no parent) is typically the browser window.</p>
<ul class="htmlelt">
  <li><dfn><a href="/en-US/docs/HTML/Content_categories" title="HTML/Content_categories">Content categories</a></dfn> <a href="/en-US/docs/HTML/Content_categories#Flow_content" title="HTML/Content categories#Flow content">Flow content</a>, <a href="/en-US/docs/HTML/Content_categories#Phrasing_content" title="HTML/Content categories#Phrasing content">phrasing content</a>, embedded content, interactive content, palpable content.</li>
  <li><dfn>Permitted content</dfn>Special, see prose</li>
  <li><dfn>Tag omission</dfn> {{no_tag_omission}}</li>
  <li><dfn>Permitted parent elements</dfn> Any element that accepts embedded content.</li>
  <li><dfn>DOM interface</dfn> {{domxref("HTMLIFrameElement")}}</li>
</ul>
<h2 id="Attributes">Attributes</h2>
<p><span style="line-height: 21px;">This element includes the&nbsp;</span><a href="https://developer.mozilla.org/en-US/docs/HTML/Global_attributes" style="line-height: 21px;" title="HTML/Global attributes">global attributes</a><span style="line-height: 21px;">.</span></p>
<dl>
  <dt>
    {{htmlattrdef("align")}} {{deprecated_inline("html4.01")}}, {{obsolete_inline("html5")}}</dt>
  <dd>
    The alignment of this element with respect to the surrounding context.</dd>
  <dt>
    {{htmlattrdef("frameborder")}} {{HTMLVersionInline(4)}} only</dt>
  <dd>
    The value 1 (the default) tells the browser to draw a border between this frame and every other frame. The value 0 tells the browser not to draw a border between this frame and other frames.</dd>
  <dt>
    {{htmlattrdef("height")}}</dt>
  <dd>
    Indicates the height of the frame {{HTMLVersionInline(5)}} in CSS pixels, or {{HTMLVersionInline(4.01)}} in pixels or as a percentage.</dd>
  <dt>
    {{htmlattrdef("longdesc")}} {{HTMLVersionInline(4)}} only</dt>
  <dd>
    A URI of a long description of the frame. Due to widespread misuse, this is not helpful for non-visual browsers.</dd>
  <dt>
    {{htmlattrdef("marginheight")}} {{HTMLVersionInline(4)}} only</dt>
  <dd>
    The amount of space in pixels between the frame's content and its top and bottom margins.</dd>
  <dt>
    {{htmlattrdef("marginwidth")}} {{HTMLVersionInline(4)}} only</dt>
  <dd>
    The amount of space in pixels between the frame's content and its left and right margins.</dd>
  <dt>
    {{htmlattrdef("mozallowfullscreen")}} {{non-standard_inline}}</dt>
  <dd>
    In Gecko 9.0 or later, this attribute can be set to <code>true</code> if the frame is allowed to be placed into full screen mode by calling its {{domxref("element.mozRequestFullScreen()")}} method. If this isn't set, the element can't be placed into full screen mode.</dd>
  <dt>
    {{htmlattrdef("webkitallowfullscreen")}} {{non-standard_inline}}</dt>
  <dd>
    In Chrome 17 or later (and maybe earlier), this attribute can be set to <code>true</code> if the frame is allowed to be placed into full screen mode by calling its {{domxref("element.webkitRequestFullScreen()")}} method. If this isn't set, the element can't be placed into full screen mode.</dd>
  <dt>
    {{htmlattrdef("mozapp")}} {{non-standard_inline}} {{B2GOnlyInline}}</dt>
  <dd>
    For frames hosting an <a href="/en-US/docs/Apps" title="OpenWebApps">open web app</a>, this specifies the URL of the <a href="/en-US/docs/Apps/Manifest" title="Apps/Manifest">app manifest</a>. This ensures that the app is loaded with the right permissions. See <a href="/en-US/docs/DOM/Using_the_Browser_API" title="DOM/Using_the_Browser_API">Using the Browser API</a> for details. Available in Gecko 13.0 and later.</dd>
  <dt>
    {{htmlattrdef("mozbrowser")}} {{non-standard_inline}} {{B2GOnlyInline}}</dt>
  <dd>
    Indicates that the frame is to appear like a top-level browser window to the embedded content. This means that <span id="summary_alias_container"><span id="short_desc_nonedit_display"><a href="/en-US/docs/DOM/window.top" title="DOM/window.top"><code>window.top</code></a>, <a href="/en-US/docs/DOM/window.parent" title="DOM/window.parent"><code>window.parent</code></a>, <a href="/en-US/docs/DOM/window.frameElement" title="DOM/window.frameElement"><code>window.frameElement</code></a>, etc. will <em>not</em> reflect the frame hierarchy. This allows for a web browser UI to be implemented entirely with web technology, given the right permissions.</span></span> See <a href="/en-US/docs/DOM/Using_the_Browser_API" title="DOM/Using_the_Browser_API">Using the Browser API</a> for details. Available in Gecko 13.0 and later.</dd>
  <dt>
    {{htmlattrdef("name")}}</dt>
  <dd>
    A name for the embedded browsing context (or frame). This can be used as the value of the <strong>target</strong> attribute of an {{HTMLElement("a")}} or {{HTMLElement("form")}} element, or the formtarget attribute of an {{HTMLElement("input")}} or {{HTMLElement("button")}} element.</dd>
  <dt>
    {{htmlattrdef("remote")}} {{non-standard_inline}} {{B2GOnlyInline}}</dt>
  <dd>
    Load the frame's page in a separate content process.</dd>
  <dt>
    {{htmlattrdef("scrolling")}} {{HTMLVersionInline(4)}} only</dt>
  <dd>
    Enumerated attribute indicating when the browser should provide a scroll bar (or other scrolling device) for the frame:
    <ul>
      <li><code>auto</code>: Only when needed.</li>
      <li><code>yes</code>: Always provide a scroll bar.</li>
      <li><code>no</code>: Never provide a scoll bar.</li>
    </ul>
  </dd>
  <dt>
    {{htmlattrdef("sandbox")}} {{HTMLVersionInline(5)}} only</dt>
  <dd>
    如果指定了空字符串,该属性对呈现在iframe框架中的内容启用一些额外的限制条件。属性值可以是用空格分隔的一系列指定的字符串。有效的值有:</dd>
  <dd>
    &nbsp;
    <ul>
      <li><code>allow-same-origin</code>: 允许将内容作为普通来源对待。如果未使用该关键字,嵌入的内容将被视为一个独立的源。</li>
      <li><code>allow-top-navigation</code>:嵌入的页面的上下文可以导航(加载)内容到顶级的浏览上下文环境(browsing context)。如果未使用该关键字,这个操作将不可用。</li>
      <li><code>allow-forms</code>: 允许嵌入的浏览上下文可以提交表单。如果该关键字未使用,该操作将不可用。</li>
      <li><code>allow-scripts</code>: 允许嵌入的浏览上下文运行脚本(但不能window创建弹窗)。如果该关键字未使用,这项操作不可用。</li>
    </ul>
    <div class="note">
      <p><strong>注意:</strong></p>
      <ul>
        <li>当被嵌入的文档与主页面同源时,强烈建议不要同时使用 <code>allow-scripts</code> <code>和allow-same-origin</code> ,否则的话将允许嵌入的文档通过代码删除 <code>sandbox</code> 属性。虽然你可以这么做,但是这样的话其安全性还不如不用<code>sandbox。</code></li>
        <li>如果攻击者可以将潜在的恶意内容往用户的已沙箱化的iframe中显示,那么沙箱操作的安全性将不再可靠。推荐把这种内容放置到独立的专用域中,减小可能的损失。[Sandboxing in general is only of minimal help if the attacker can arrange for the potentially hostile content to be displayed in the user's browser outside a sandboxed <code>iframe</code>. It is recommended that such content should be served from a <em>separate dedicated domain</em>, to limit the potential damage.]</li>
      </ul>
    </div>
  </dd>
  <dt>
    {{htmlattrdef("seamless")}} {{HTMLVersionInline(5)}} only</dt>
  <dd>
    该布尔属性指示浏览器将iframe渲染成容器页面文档的一部分。例如,通过打被包含的文档的链接,在iframe页面的样式被渲染之前,父页面的CSS样式就可以应用在iframe中(除非被其他设置阻止)。</dd>
  <dt>
    {{htmlattrdef("src")}}</dt>
  <dd>
    The URL of the page to embed.</dd>
  <dt>
    {{htmlattrdef("srcdoc")}} {{HTMLVersionInline(5)}} only</dt>
  <dd>
    该属性值可以是HTML代码,这些代码会被渲染到iframe中,如果同时指定了src属性,srcdoc会覆盖src所指向的页面。该属性最好能与sandbox和seamless属性一起使用。</dd>
  <dt>
    {{htmlattrdef("width")}}</dt>
  <dd>
    Indicates the width of the frame {{HTMLVersionInline(5)}} in CSS pixels, or {{HTMLVersionInline(4.01)}} in pixels or as a percentage.</dd>
</dl>
<h2 id="Scripting">脚本</h2>
<p>内联的框架,就像 {{HTMLElement("frame")}} 元素一样,会加入 <code><a href="/en-US/docs/DOM/window.frames" title="DOM/window.frames">window.frames</a></code> 伪数组中。</p>
<p>From the DOM <code>iframe</code> element, scripts can get access to the <a href="/en-US/docs/DOM/window" title="DOM/window"><code>window</code></a> object of the included HTML page via the <code>contentWindow</code> property. The <code>contentDocument</code> property refers to the document element inside the <code>iframe</code> (this is equivalent to <code>contentWindow.document</code>), but is not supported by Internet Explorer versions before IE8.</p>
<p>From the inside of a frame, a script can get a reference to the parent window via <code><a href="/en-US/docs/DOM/window.parent" title="DOM/window.parent">window.parent</a></code>.</p>
<p>Scripts trying to access a frame's content are subject to the <a href="/en-US/docs/Same_origin_policy_for_JavaScript" title="Same origin policy for JavaScript">same-origin policy</a>, and cannot access most of the properties in the other window object if it was loaded from a different domain. This also applies to a script inside a frame trying to access its parent window. Cross-domain communication can still be achieved with <code><a href="/en-US/docs/DOM/window.postMessage" title="DOM/window.postMessage">window.postMessage</a></code>.</p>
<h2 id="Example">Example</h2>
<pre class="brush: html">
&lt;script type="text/javascript"&gt;
  var iframe = window.getElementsByTagName( "iframe" )[ 0 ];
  alert( "Frame title: " + iframe.contentWindow.title );
&lt;/script&gt;


&lt;iframe src="page.html" width="300" height="300"&gt;
  &lt;p&gt;Your browser does not support iframes.&lt;/p&gt;
&lt;/iframe&gt;</pre>
<h2 id="Notes">Notes</h2>
<div class="geckoVersionNote">
  <p>{{gecko_callout_heading("6.0")}}</p>
  <p>Starting in Gecko 6.0 {{geckoRelease("6.0")}}, rendering of inline frames correctly respects the borders of their containing element when they're rounded using {{cssxref("border-radius")}}.</p>
</div>
<h2 id="Specifications" name="Specifications">Specifications</h2>
<table class="standard-table">
  <thead>
    <tr>
      <th scope="col">Specification</th>
      <th scope="col">Status</th>
      <th scope="col">Comment</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>{{SpecName('HTML WHATWG', 'the-iframe-element.html#the-iframe-element', '&lt;iframe&gt;')}}</td>
      <td>{{Spec2('HTML WHATWG')}}</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>{{SpecName('HTML5 W3C', 'the-iframe-element.html#the-b-element', '&lt;iframe&gt;')}}</td>
      <td>{{Spec2('HTML5 W3C')}}</td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td>{{SpecName('HTML4.01', 'frames.html#h-16.5', '&lt;iframe&gt;')}}</td>
      <td>{{Spec2('HTML4.01')}}</td>
      <td>&nbsp;</td>
    </tr>
  </tbody>
</table>
<h2 id="Browser_compatibility" name="Browser_compatibility">Browser compatibility</h2>
<p>{{CompatibilityTable}}</p>
<div id="compat-desktop">
  <table class="compat-table">
    <tbody>
      <tr>
        <th>Feature</th>
        <th>Chrome</th>
        <th>Firefox (Gecko)</th>
        <th>Internet Explorer</th>
        <th>Opera</th>
        <th>Safari (WebKit)</th>
      </tr>
      <tr>
        <td>Basic support</td>
        <td>1.0</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
      </tr>
      <tr>
        <td><code>sandbox</code></td>
        <td>4</td>
        <td>{{CompatGeckoDesktop("17.0")}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
      </tr>
      <tr>
        <td><code>seamless</code></td>
        <td>4</td>
        <td>{{CompatNo}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
      </tr>
      <tr>
        <td><code>srcdoc</code></td>
        <td>4</td>
        <td>{{CompatNo}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
      </tr>
      <tr>
        <td><code>allowfullscreen</code></td>
        <td>17 {{property_prefix("webkit")}}</td>
        <td>{{CompatGeckoDesktop("9.0")}} {{property_prefix("moz")}}</td>
        <td>{{CompatNo}}</td>
        <td>{{CompatNo}}</td>
        <td>{{CompatNo}}</td>
      </tr>
    </tbody>
  </table>
</div>
<div id="compat-mobile">
  <table class="compat-table">
    <tbody>
      <tr>
        <th>Feature</th>
        <th>Android</th>
        <th>Firefox Mobile (Gecko)</th>
        <th>IE Phone</th>
        <th>Opera Mobile</th>
        <th>Safari Mobile</th>
      </tr>
      <tr>
        <td>Basic support</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
        <td>{{CompatVersionUnknown}}</td>
      </tr>
      <tr>
        <td><code>sandbox</code></td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatGeckoMobile("17.0")}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
      </tr>
      <tr>
        <td><code>seamless</code></td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatNo}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
      </tr>
      <tr>
        <td><code>srcdoc</code></td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatNo}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatUnknown}}</td>
      </tr>
      <tr>
        <td><code>allowfullscreen</code></td>
        <td>{{CompatUnknown}}</td>
        <td>{{CompatGeckoMobile("9.0")}}{{property_prefix("moz")}}</td>
        <td>{{CompatNo}}</td>
        <td>{{CompatNo}}</td>
        <td>{{CompatNo}}</td>
      </tr>
    </tbody>
  </table>
</div>
<div>
  {{HTML:Element_Navigation}}</div>
恢复到这个版本