[HTML5] Accessible Icon Buttons
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了[HTML5] Accessible Icon Buttons,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含1138字,纯文字阅读大概需要2分钟。
内容图文
DOCTYPE html> <html lang="en"> <head> <title>Button Demo</title> <link rel="stylesheet" type="text/css" href="css/demo.css"> </head> <body> <main> <button>Help!</button> <button> <span class="visuallyhidden">Help!</span> <i class="icon icon-help" aria-hidden="true"></i> </button> <!-- alternate labeling technique: aria-label --> <button aria-label="Help!"> <i class="icon icon-help" aria-hidden="true"></i> </button> <div class="button" role="button" tabindex="0"> <svg width="32" height="32" viewBox="0 0 32 32" class="icon" aria-labelledby="svgtitle"> <title id="svgtitle">Help!</title> <path d="M14 24h4v-4h-4v4zM16 8c-3 0-6 3-6 6h4c0-1 1-2 2-2s2 1 2 2c0 2-4 2-4 4h4c2-0.688 4-2 4-5s-3-5-6-5zM16 0c-8.844 0-16 7.156-16 16s7.156 16 16 16 16-7.156 16-16-7.156-16-16-16zM16 28c-6.625 0-12-5.375-12-12s5.375-12 12-12 12 5.375 12 12-5.375 12-12 12z"></path> </svg> </div> </main> </body> </html>
.visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
[HTML5] Accessible Icon Buttons
标签:
本文系统来源:http://www.cnblogs.com/Answer1215/p/5685710.html
内容总结
以上是互联网集市为您收集整理的[HTML5] Accessible Icon Buttons全部内容,希望文章能够帮你解决[HTML5] Accessible Icon Buttons所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。