blob: 9010cb378f1cf440850a6bfaab40f2ce6efcf5dd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
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>
|