?
本文檔使用 php中文網(wǎng)手冊(cè) 發(fā)布
HTML<param> 元素
(或HTML Parameter 元素) 定義了 <object>
的參數(shù)
內(nèi)容類別 | 沒有。 |
---|---|
允許的內(nèi)容 | 沒有,這是一個(gè)空的元素。 |
標(biāo)記遺漏 | 由于它是空白元素,所以開始標(biāo)記必須存在,并且結(jié)束標(biāo)記不能出現(xiàn)。 |
允許父級(jí) | 任何流內(nèi)容之前的<object>。 |
允許ARIA角色 | 沒有 |
DOM界面 | HTMLParamElement |
這個(gè)元素包含全局屬性。
name
參數(shù)的名稱。
type
僅當(dāng)valuetype
設(shè)置為“ref” 時(shí)才使用。指定在由value指定的URI處找到的值的MIME類型。
value
指定參數(shù)的值
valuetype
指定value
屬性的類型。可能的值是:
數(shù)據(jù):默認(rèn)值。該值作為字符串傳遞給對(duì)象的實(shí)現(xiàn)。
ref:該值是存儲(chǔ)運(yùn)行時(shí)值的資源的URI。
object:<object>
同一文檔中的另一個(gè)ID 。
請(qǐng)參閱<object>
<param>的例子。
Specification | Status | Comment |
---|---|---|
HTML Living StandardThe definition of '<param>' in that specification. | Living Standard | |
HTML5The definition of '<param>' in that specification. | Recommendation | |
HTML 4.01 SpecificationThe definition of '<param>' in that specification. | Recommendation |
Feature | Chrome | Edge | Firefox | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|---|
Basic Support | 1 | (Yes) | 1 | (Yes) | (Yes) | (Yes) |
name | 1 | (Yes) | 1 | (Yes) | (Yes) | (Yes) |
type | 1 | (Yes) | 1 | (Yes) | (Yes) | (Yes) |
value | 1 | (Yes) | 1 | (Yes) | (Yes) | (Yes) |
valuetype | 1 | (Yes) | 1 | (Yes) | (Yes) | (Yes) |
Feature | Android | Chrome for Android | Edge mobile | Firefox for Android | IE mobile | Opera Android | iOS Safari |
---|---|---|---|---|---|---|---|
Basic Support | (Yes) | (Yes) | (Yes) | 1 | (Yes) | (Yes) | (Yes) |
name | (Yes) | (Yes) | (Yes) | 1 | (Yes) | (Yes) | (Yes) |
type | (Yes) | (Yes) | (Yes) | 1 | (Yes) | (Yes) | (Yes) |
value | (Yes) | (Yes) | (Yes) | 1 | (Yes) | (Yes) | (Yes) |
valuetype | (Yes) | (Yes) | (Yes) | 1 | (Yes) | (Yes) | (Yes) |