实例代码“Ctrl+/”提示“F11/ESC”全屏 返回 格式化 恢复 运行
x
 
1
<!DOCTYPE html>
2
<html>
3
<body>
4
5
<form oninput="x.value=parseInt(a.value)+parseInt(b.value)">0
6
<input type="range" id="a" value="50">100
7
+<input type="number" id="b" value="50">
8
=<output name="x" for="a b"></output>
9
</form>
10
11
<p><strong>注意:</strong>  Internet Explorer 不支持 output 标签。</p>
12
13
</body>
14
</html>
15