跳转到:

我们的志愿者还没有将这篇文章翻译为 中文 (简体)加入我们帮助完成翻译
您也可以阅读此文章的English (US)版。

Non-standard
This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.

The x-ms-acceleratorkey property provides a way to declare that an accelerator key has been assigned to an element.

This proprietary property is specific to Internet Explorer and Microsoft Edge.

The x-ms-acceleratorkey property enables you to expose a notification in the accessibility tree to screen readers and other assistive technologies that an accelerator key exists. This attribute does not provide the accelerator key behavior. You must provide keyboard event handlers, such as onkeypress, onkeydown, or onkeyup, to process accelerator keys in your document.

Syntax

<button x-ms-acceleratorkey="string">...</button>

Value

Type: String

Name of accelerator key, for example: Ctrl+B or Ctrl+S.

See also

文档标签和贡献者

此页面的贡献者: ExE-Boss, mattwojo
最后编辑者: ExE-Boss,