<param>

您正在阅读此内容的英文版本,因为该语系尚未翻译。 帮助我们翻译此文章吧!

概要

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

内容分类
允许内容 不允许,它是一个空元素(empty element)。
标签省略 由于它是一个void元素,所以开始标签必须出现,而结束标签必须不出现。
允许的父级元素 任何以下内容flow content)都可以在<object>元素的前面作为它的父元素。
DOM 接口 HTMLParamElement

属性

这个元素包含 全局属性.

name
参数的名字。
type
仅当valuetype设置为“ref”时才使用。根据URI中给定的数据确定MIME类型。
value
确定参数的值。
valuetype
确定参数的类型。可选值如下:
  • data: 默认值。该值作为字符串变量传递给对象实例。
  • ref: 该值是存储运行时变量的资源的URI。
  • object: 同一页面(document)中另一个<object>的ID。

示例

请在<object>页面中查看<param>的示例。

规范

Specification Status Comment
HTML Living Standard
<param>
Living Standard  
HTML5
<param>
Recommendation  
HTML 4.01 Specification
<param>
Recommendation  

浏览器兼容性

 

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
paramChrome Full support 1Edge Full support YesFirefox Full support 1IE Full support YesOpera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesFirefox Android Full support 4Opera Android Full support YesSafari iOS Full support YesSamsung Internet Android Full support Yes
nameChrome Full support 1Edge Full support YesFirefox Full support 1IE Full support YesOpera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesFirefox Android Full support 4Opera Android Full support YesSafari iOS Full support YesSamsung Internet Android Full support Yes
type
Deprecated
Chrome Full support 1Edge Full support YesFirefox Full support 1IE Full support YesOpera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesFirefox Android Full support 4Opera Android Full support YesSafari iOS Full support YesSamsung Internet Android Full support Yes
valueChrome Full support 1Edge Full support YesFirefox Full support 1IE Full support YesOpera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesFirefox Android Full support 4Opera Android Full support YesSafari iOS Full support YesSamsung Internet Android Full support Yes
valuetype
Deprecated
Chrome Full support 1Edge Full support YesFirefox Full support 1IE Full support YesOpera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesFirefox Android Full support 4Opera Android Full support YesSafari iOS Full support YesSamsung Internet Android Full support Yes

Legend

Full support  
Full support
Deprecated. Not for use in new websites.
Deprecated. Not for use in new websites.
 

参阅