Visitar URL original
第 96 期(W3C 标准-HTML):output 元素 · Issue #99 · fezaoduke/fe-practice-hard · GitHub
Skip to content

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

Description

@wingmeng

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

使用示例:

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions