这些属性是什么:`aria-labelledby` 和 `aria-hidden` [英] What are these attributes: `aria-labelledby` and `aria-hidden`

查看:36
本文介绍了这些属性是什么:`aria-labelledby` 和 `aria-hidden`的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用 Bootstrap modal,我见过很多这些 aria 属性,但我不知道如何使用它们.

Using Bootstrap modal, I've seen these aria attributes a lot, but I never knew how to make use of them.

有谁知道在什么情况下使用这些属性?我用谷歌搜索——只是没有找到任何直接的答案.

Does anyone know what cases to use these attributes? I googled—just didn't find any straightforward answers.

推荐答案

HTML5 ARIA 属性就是你要找的.即使没有引导程序,它也可以在您的代码中使用.

HTML5 ARIA attribute is what you're looking for. It can be used in your code even without bootstrap.

Accessible Rich Internet Applications (ARIA) 定义了制作 Web内容和 Web 应用程序(尤其是那些使用 Ajax 和JavaScript) 更适合残障人士使用.

Accessible Rich Internet Applications (ARIA) defines ways to make Web content and Web applications (especially those developed with Ajax and JavaScript) more accessible to people with disabilities.

准确来说,您的属性被称为ARIA 属性状态和模型

To be precise for your question, here is what your attributes are called as ARIA attribute states and model

aria-labelledby:标识标记当前元素的元素(或多个元素).

aria-labelledby: Identifies the element (or elements) that labels the current element.

aria-hidden (state):表示元素及其所有后代在实现时对任何用户都不可见或感知作者.

aria-hidden (state): Indicates that the element and all of its descendants are not visible or perceivable to any user as implemented by the author.

这篇关于这些属性是什么:`aria-labelledby` 和 `aria-hidden`的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆