Warning:
This wiki has been archived and is now read-only.

HTML5/the-iframe-element

From HTML5 Chinese Interest Group Wiki
Jump to: navigation, search

iframe元素

分类:
流式内容
段落式内容
嵌入式内容
交互式内容
使用场景:
需要嵌入式内容处。
内容模型:
符合要求的文本。
允许的属性:
全局属性
src
srcdoc
name
sandbox
seamless
width
height
DOM接口:
interface HTMLIFrameElement : HTMLElement { attribute DOMString src; attribute DOMString srcdoc; attribute DOMString name; [PutForwards=value] readonly attribute DOMSettableTokenList sandbox; attribute boolean seamless; attribute DOMString width; attribute DOMString height; readonly attribute Document contentDocument; readonly attribute WindowProxy contentWindow; };

embed元素

分类:
流式内容
段落式内容
嵌入式内容
交互式内容
使用场景:
需要嵌入式内容处。
内容模型:
空。
允许的属性:
全局属性
src
type
width
height
任何其它没有命名空间的属性(见下文)。
DOM接口:
interface HTMLEmbedElement : HTMLElement { attribute DOMString src; attribute DOMString type; attribute DOMString width; attribute DOMString height; }; 根据embed元素嵌入的内容不同,此节点可能支持其它接口。

object元素

分类:
流式内容
段落式内容
嵌入式内容
如果元素有usemap属性:交互式内容
列表元素, 可提交元素, 表单支持元素
使用场景:
需要嵌入式内容处。
内容模型:
零个或多个param元素, 之后为透明内容模型
允许的属性:
全局属性
data
type
name
usemap
form
width
height
DOM接口:
interface HTMLObjectElement : HTMLElement { attribute DOMString data; attribute DOMString type; attribute DOMString name; attribute DOMString useMap; readonly attribute HTMLFormElement form; attribute DOMString width; attribute DOMString height; readonly attribute Document contentDocument; readonly attribute WindowProxy contentWindow; readonly attribute boolean willValidate; readonly attribute ValidityState validity; readonly attribute DOMString validationMessage; boolean checkValidity(); void setCustomValidity(in DOMString error); };

param元素

分类:

使用场景:
流式内容前作为object元素的孩子。
内容模型:
空。
允许的属性:
全局属性
name
value
DOM接口:
interface HTMLParamElement : HTMLElement { attribute DOMString name; attribute DOMString value; };

video元素

audio元素

source元素

track元素

多媒体元素