English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML 框架

HTML frames can display multiple pages in the same browser window, where the <frame> tag can build frame pages to split the browser window, and the <iframe> tag is used for in-page frames

iframe usage

By using frames, you can display more than one page in the same browser window.

iframe syntax:

<iframe src="url link"></iframe>

The URL points to a different web page.

Iframe - Set height and width

The height and width attributes are used to define the height and width of the iframe tag.

The default unit of the attribute is pixels, but you can specify it to be displayed in proportion (such as:"80%")

<iframe src="/run/demo_iframe.html" width="180" height="180"></iframe>
测试看看 ‹/›

Iframe - Remove border

The frameborder attribute is used to define whether the iframe border is displayed.

Set the attribute value to "0" to remove the iframe border:

<iframe src="/run/demo_iframe.html" name="iframe"></iframe>
<p><a href="https://www.oldtoolbag.com" target="iframe">oldtoolbag.com</a></p>
测试看看 ‹/›

HTML iframe 标签

标签说明