diff options
author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
commit | 33058f2b292b3a581333bdfb21b8f671898c5060 (patch) | |
tree | 51c3e392513ec574331b2d3f85c394445ea803c6 /files/zh-cn/web/html/element/param | |
parent | 8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff) | |
download | translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2 translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip |
initial commit
Diffstat (limited to 'files/zh-cn/web/html/element/param')
-rw-r--r-- | files/zh-cn/web/html/element/param/index.html | 103 |
1 files changed, 103 insertions, 0 deletions
diff --git a/files/zh-cn/web/html/element/param/index.html b/files/zh-cn/web/html/element/param/index.html new file mode 100644 index 0000000000..9010cb378f --- /dev/null +++ b/files/zh-cn/web/html/element/param/index.html @@ -0,0 +1,103 @@ +--- +title: <param> +slug: Web/HTML/Element/param +translation_of: Web/HTML/Element/param +--- +<h2 id="概要">概要</h2> + +<p><strong>HTML <code><param>元素</code></strong>为{{ HTMLElement("object") }}元素定义参数</p> + +<table class="properties"> + <tbody> + <tr> + <th scope="row"><dfn><a href="https://developer.mozilla.org/en-US/docs/HTML/Content_categories" title="HTML/Content_categories">内容分类</a></dfn></th> + <td>无</td> + </tr> + <tr> + <th scope="row"><dfn>允许内容</dfn></th> + <td>不允许,它是一个空元素({{Glossary("empty element")}})。</td> + </tr> + <tr> + <th scope="row"><dfn>标签省略</dfn></th> + <td>由于它是一个void元素,所以开始标签必须出现,而结束标签必须不出现。</td> + </tr> + <tr> + <th scope="row"><dfn>允许的父级元素</dfn></th> + <td>任何<a href="/zh-CN/docs/Web/Guide/HTML/Content_categories#Flow_content#Flow_content">以下内容</a>(<a href="https://developer.mozilla.org/en-US/docs/HTML/Content_categories#Flow_content">flow content</a>)都可以在{{ HTMLElement("object") }}元素的前面作为它的父元素。</td> + </tr> + <tr> + <th scope="row"><dfn>DOM 接口</dfn></th> + <td>{{domxref("HTMLParamElement")}}</td> + </tr> + </tbody> +</table> + +<h2 id="属性">属性</h2> + +<p><span style="line-height: 21px;">这个元素包含 </span><a href="https://developer.mozilla.org/en-US/docs/HTML/Global_attributes" style="line-height: 21px;" title="HTML/Global attributes">全局属性</a><span style="line-height: 21px;">.</span></p> + +<dl> + <dt>{{ htmlattrdef("name") }}</dt> + <dd>参数的名字。</dd> + <dt>{{ htmlattrdef("type") }} {{ obsolete_inline() }}</dt> + <dd>仅当valuetype设置为“ref”时才使用。根据URI中给定的数据确定MIME类型。</dd> + <dt>{{ htmlattrdef("value") }}</dt> + <dd>确定参数的值。</dd> + <dt>{{ htmlattrdef("valuetype") }} {{ obsolete_inline() }}</dt> + <dd>确定参数的类型。可选值如下: + <ul> + <li>data: 默认值。该值作为字符串变量传递给对象实例。</li> + <li>ref: 该值是存储运行时变量的资源的URI。</li> + <li>object: 同一页面(document)中另一个{{HTMLElement("object")}}的ID。</li> + </ul> + </dd> +</dl> + +<h2 id="示例">示例</h2> + +<p>请在{{ HTMLElement("object") }}页面中查看<param>的示例。</p> + +<h2 id="Specifications" name="Specifications">规范</h2> + +<table class="standard-table"> + <thead> + <tr> + <th scope="col">Specification</th> + <th scope="col">Status</th> + <th scope="col">Comment</th> + </tr> + </thead> + <tbody> + <tr> + <td>{{SpecName('HTML WHATWG', 'the-iframe-element.html#the-param-element', '<param>')}}</td> + <td>{{Spec2('HTML WHATWG')}}</td> + <td> </td> + </tr> + <tr> + <td>{{SpecName('HTML5 W3C', 'embedded-content-0.html#the-param-element', '<param>')}}</td> + <td>{{Spec2('HTML5 W3C')}}</td> + <td> </td> + </tr> + <tr> + <td>{{SpecName('HTML4.01', 'struct/objects.html#h-13.3.2', '<param>')}}</td> + <td>{{Spec2('HTML4.01')}}</td> + <td> </td> + </tr> + </tbody> +</table> + +<h2 id="Browser_compatibility" name="Browser_compatibility">浏览器兼容性</h2> + +<p> </p> + +<p>{{Compat("html.elements.param")}}</p> + +<div id="compat-mobile"> </div> + +<h2 id="参阅">参阅</h2> + +<ul> + <li>{{ HTMLElement("object") }}</li> +</ul> + +<div>{{HTMLRef}}</div> |