如何不宣布静态和按钮窗口小部件集体扑朔迷离
我正在使用包含大量静态和动态按钮的卡。我想如何不由屏幕阅读器共同宣布所有这些信息。当我向左滑动时,预期行为只宣布了一个元素
I'm using a card which contained a lot of static and dynamic buttons . I WANT how to not announce all these information collectively by the screen reader. Expected behaviour only announced one element as i swipe right of left
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没有代码,就不容易回答这个问题。如果您将其标记为一张卡,则该卡中的所有信息都可能宣布。为了避免这种情况,您可以给卡容器一个ARIA标签。然后将读取标签,而不是容器内的内容。
Without the code it's not easy to answer this. If you tab to one card, all the information inside that card is potential announced. To avoid this you can give the card container an aria label. The label will then be read instead of the content inside the container.