html - 正确使用 Google map 的 ARIA 角色

标签 html google-maps wai-aria

我应该为 Google map 应用程序使用哪种正确的 ARIA 角色?

<section id="map-container">
    <div id="map" role="map"></div>
<main id="maincontent">
    <section id="map-container">
      <div id="map"></div>

最佳答案

您在这里寻找的是role="application",因为用户可以使用屏幕阅读器等与 map 交互。

关于html - 正确使用 Google map 的 ARIA 角色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50503677/

相关文章:

javascript - 如何将div导出为PDF?

html - Chrome - Colspan 无法按预期工作

javascript - 如何从txt文件或pastebin中获取文本?

google-maps - 通过坐标获取地形类型

javascript - 谷歌地图多重叠加无累积不透明度

jquery - 使用 Jquery 更改可排序表上的升序和降序状态的 aria-label

javascript - 如何在不使用 marquee 标签的情况下滚动图像? Javascript、jquery 或 css 任何东西

javascript - 我可以从 Google map (v3) 中删除网格线吗?

angularjs - 在进度条的开始和停止处大声朗读(md-progress-linear)

html - 您可以在 <section role ="main"> 元素中使用 <aside> 元素吗?