HTMLEmbedElement
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since January 2020.
HTMLEmbedElement
接口提供了用于操作 <embed>
元素的特殊属性(除了常规 HTMLElement
接口之外,它还可以通过继承来使用)。
备注:
本主题描述标准定义中的 HTMLEmbedElement
接口。它没有解决早期非标准化版本的接口问题。
实例属性
从其父接口 HTMLElement
继承属性。
HTMLEmbedElement.align
已弃用-
表示枚举属性的字符串,指示元素内容相对于周围上下文的对齐方式。可能的值有:
"left"
、"right"
、"center"
和"justify"
。 HTMLEmbedElement.height
-
一个反映
height
HTML 属性的字符串,包含资源显示的高度。 HTMLEmbedElement.name
已弃用-
一个表示嵌入对象名字的字符串。
HTMLEmbedElement.src
-
一个反映
src
HTML 属性的字符串,包含资源地址。 HTMLEmbedElement.type
-
一个反映
type
HTML 属性的字符串,包含资源类型。 HTMLEmbedElement.width
-
一个反映
width
HTML 属性的字符串,包含资源的显示宽度。
实例方法
无特定方法;从其父接口 HTMLElement
继承方法。
规范
Specification |
---|
HTML # htmlembedelement |
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
HTMLEmbedElement | ||||||||||||
align | ||||||||||||
getSVGDocument | ||||||||||||
height | ||||||||||||
name | ||||||||||||
src | ||||||||||||
type | ||||||||||||
width |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- Deprecated. Not for use in new websites.
- See implementation notes.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
参见
- 实现此接口的 HTML 元素:
<embed>
。