HTMLEmbedElement
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015年7月.
HTMLEmbedElement 接口提供了用于操作 <embed> 元素的特殊属性(除了常规 HTMLElement 接口之外,它还可以通过继承来使用)。
备注:
本主题描述标准定义中的 HTMLEmbedElement 接口。它没有解决早期非标准化版本的接口问题。
实例属性
从其父接口 HTMLElement 继承属性。
HTMLEmbedElement.align已弃用-
表示枚举属性的字符串,指示元素内容相对于周围上下文的对齐方式。可能的值有:
"left"、"right"、"center"和"justify"。 HTMLEmbedElement.height-
一个反映
heightHTML 属性的字符串,包含资源显示的高度。 HTMLEmbedElement.name已弃用-
一个表示嵌入对象名字的字符串。
HTMLEmbedElement.src-
一个反映
srcHTML 属性的字符串,包含资源地址。 HTMLEmbedElement.type-
一个反映
typeHTML 属性的字符串,包含资源类型。 HTMLEmbedElement.width-
一个反映
widthHTML 属性的字符串,包含资源的显示宽度。
实例方法
无特定方法;从其父接口 HTMLElement 继承方法。
规范
| Specification |
|---|
| HTML> # htmlembedelement> |
浏览器兼容性
Loading…
参见
- 实现此接口的 HTML 元素:
<embed>。