html – 在fontAwesome中隐藏的咏叹调效果

html – 在fontAwesome中隐藏的咏叹调效果,第1张

概述aria-hidden在fontAwesome中的作用是什么? 有必要使用它吗?为什么?或者为什么不呢? 例如,我想知道下面代码中aria-hidden =“true”的效果 <i class="fa fa-star" aria-hidden="true"></i> 请帮我. 简而言之,它使图标对屏幕阅读器不可见,以增强可访问性. 从the documentation开始: If you’re u aria-hIDden在FontAwesome中的作用是什么?
有必要使用它吗?为什么?或者为什么不呢?

例如,我想知道下面代码中aria-hIDden =“true”的效果

<i  aria-hIDden="true"></i>

请帮我.

解决方法 简而言之,它使图标对屏幕阅读器不可见,以增强可访问性.

从the documentation开始:

If you’re using an icon to add some extra decoration or branding,it does not need to be announced to users as they are navigating your site or app aurally. Additionally,if you’re using an icon to visually re-emphasize or add styling to content already present in your HTML,it does not need to be repeated to an assistive technology-using user. You can make sure this is not read by adding the aria-hIDden=”true” to your Font Awesome markup.

总结

以上是内存溢出为你收集整理的html – 在fontAwesome中隐藏咏叹调效果全部内容,希望文章能够帮你解决html – 在fontAwesome中隐藏的咏叹调效果所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1138960.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-31
下一篇 2022-05-31

发表评论

登录后才能评论

评论列表(0条)

保存