有必要使用它吗?为什么?或者为什么不呢?
例如,我想知道下面代码中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中隐藏的咏叹调效果所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)