Movatterモバイル変換


[0]ホーム

URL:


  1. 面向开发者的 Web 技术
  2. Web API
  3. HTMLEmbedElement

此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。

View in EnglishAlways switch to English

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 接口。它没有解决早期非标准化版本的接口问题。

EventTarget Node Element 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

浏览器兼容性

参见

  • 实现此接口的 HTML 元素:<embed>

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp