Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

第 96 期(W3C 标准-HTML):output 元素 #99

Open
wingmeng opened this issue Aug 27, 2019 · 0 comments
Open

第 96 期(W3C 标准-HTML):output 元素 #99

wingmeng opened this issue Aug 27, 2019 · 0 comments

Comments

@wingmeng
Copy link
Collaborator

output 元素是 HTML5 新增的元素,用于不同类型的输出,如用于计算结果或脚本的输出等。

使用示例:

<form oninput="volume.value = range.value">
  <input type="range" name="range" value="50">
  <output name="volume">50</output>
</form>

由于 range 类型的 input 元素表现为一个滑块,不显示数值,所以这时使用 ouput 元素协助显示其值。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant