-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
[html] 第80天 简述下HTML的快捷键属性是哪个?并举例说明有什么用? #572
Comments
accesskey windows按下ALT+ 特定键 会跳转的特定位置 mac是CTRL |
<a href="http://www.baidu.com" accesskey="h">HTML</a><br /> ALT+h => 会访问百度 |
<a href="https://developer.mozilla.org/zh-CN/docs/Web/HTML/Global_attributes/accesskey" target="_blank" accesskey="x">快捷键x:accesskey</a>
<div accesskey="z" onclick="this.style.color = 'red';">快捷键z:变红</div> 参考文档: 推荐看下张鑫旭的那篇文章,文章中提出对 |
html中的快捷键属性accessKey,可以注入到任意的元素中,通过快捷键触发对应元素的绑定事件。 推荐楼上推荐的张鑫旭的那篇文章 |
建议把快捷键写成 ALT+accesskey, |
对于用户量居多的网站web应用,无障碍非常重要,accesskey我之前没听过,看了你们的回答我补充了这方面的知识,h5中,accesskey可以注入到任何的元素中,h4是不行的,这也推动了无障碍的发展, |
|
第80天 简述下HTML的快捷键属性是哪个?并举例说明有什么用?
The text was updated successfully, but these errors were encountered: