<param>: The Object Parameter element

Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.

<param> HTML 元素定义 <object> 元素的参数。

¥The <param> HTML element defines parameters for an <object> element.

注意:使用带有 data 属性的 <object> 元素来设置外部资源的 URL。

¥Note: Use the <object> element with a data attribute to set the URL of an external resource.

属性

¥Attributes

该元素包括 全局属性

¥This element includes the global attributes.

name Deprecated

参数名称。

value Deprecated

指定参数的值。

type Deprecated

仅当 valuetype 设置为 ref 时才使用。指定在 value 指定的 URI 中找到的值的 MIME 类型。

valuetype Deprecated

指定 value 属性的类型。可能的值为:

  • data:默认值。该值作为字符串传递给对象的实现。
  • ref:该值是存储运行时值的资源的 URI。
  • object:同一文档中另一个 <object> 的 ID。

技术总结

¥Technical summary

内容类别 没有任何。
允许的内容 没有任何;这是 void element
标签遗漏 必须有开始标记,并且不能有结束标记。
允许的父级 任何 流动内容 之前有 <object>
隐式 ARIA 角色 没有对应的角色
允许的 ARIA 角色 不允许 role
DOM 接口 HTMLParamElement

规范

Specification
HTML Standard
# the-param-element

¥Specifications

浏览器兼容性

BCD tables only load in the browser

¥Browser compatibility

也可以看看

¥See also