output

UK[?a?tp?t] US[?a?t?p?t]

n.出力; 出力; 仕事; [計(jì)算] 出力信號(hào)

vt 。出力###

html5<output> タグ 構(gòu)文

Function: <output> タグは、スクリプトの出力など、さまざまなタイプの出力を定義します。

#パラメータ:

屬性値説明for別の要素のid出力ドメインに関連する 1 つ以上の要素を定義します。 formformname入力フィールドが屬する 1 つ以上のフォームを定義します。 name一意の名前 オブジェクトの一意の名前を定義します。 (フォーム送信時(shí)に使用)


html5<output> タグ 例

<!DOCTYPE html>
<html>
<body>

<form oninput="x.value=parseInt(a.value)+parseInt(b.value)">0
<input type="range" id="a" value="50">100
+<input type="number" id="b" value="50">
=<output name="x" for="a b"></output>
</form>

<p><b>注釋?zhuān)?lt;/b>Internet Explorer 不支持 output 標(biāo)簽。</p>

</body>
</html>
インスタンスの実行 ?

[インスタンスの実行] ボタンをクリックしてオンライン インスタンスを表示します