HTML 5 <iframe> 標簽
定義和用法
<iframe> 標簽創(chuàng)建包含另一個文檔的行內框架。
HTML 4.01 與 HTML 5 之間的差異
在 HTML 5 中,僅僅支持 src 屬性
例子
<iframe src="/index.html"></iframe>
屬性
標準屬性
class, contenteditable, contextmenu, dir, draggable, id, irrelevant, lang, ref, registrationmark, tabindex, template, title
如需完整的描述,請訪問 HTML 5 中標準屬性。
事件屬性
onabort, onbeforeunload, onblur, onchange, onclick, oncontextmenu, ondblclick, ondrag, ondragend, ondragenter, ondragleave, ondragover, ondragstart, ondrop, onerror, onfocus, onkeydown, onkeypress, onkeyup, onload, onmessage, onmousedown, onmousemove, onmouseover, onmouseout, onmouseup, onmousewheel, onresize, onscroll, onselect, onsubmit, onunload
如需完整的描述,請訪問 HTML 5 中事件屬性。
TIY 實例
- 內聯(lián)框架
- 本例演示如何創(chuàng)建內聯(lián)框架(HTML 頁中的框架)。