?
This document uses PHP Chinese website manual Release
iframe 用于在網(wǎng)頁內顯示網(wǎng)頁。
<iframe src="/html/index.asp" height="300px" width="99%" style="margin-top:15px;"></iframe>
<iframe src="_URL_"></iframe>
URL 指向隔離頁面的位置。
height 和 width 屬性用于規(guī)定 iframe 的高度和寬度。
屬性值的默認單位是像素,但也可以用百分比來設定(比如 "80%")。
<iframe src="demo_iframe.htm" width="200" height="200"></iframe>
frameborder 屬性規(guī)定是否顯示 iframe 周圍的邊框。
設置屬性值為 "0" 就可以移除邊框:
<iframe src="demo_iframe.htm" frameborder="0"></iframe>
iframe 可用作鏈接的目標(target)。
鏈接的 target 屬性必須引用 iframe 的 name 屬性:
<iframe src="demo_iframe.htm" name="iframe_a"></iframe> <p><a href="http://miracleart.cn" target="iframe_a">PHP中文網(wǎng)</a></p>
標簽 | 描述 |
---|---|
<iframe> | 定義內聯(lián)的子窗口(框架) |