如何避免标签停在链接? [英] How to avoid tab stop on the link?

查看:94
本文介绍了如何避免标签停在链接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须使用< a href 才能显示twitter启动链接:

I have to use <a href to display twitter bootstrap link:

<a rel="tooltip" href="#" data-placement="right" data-original-title="Tooltip">Tooltip is here</a>

但我想避免这种元素的制表符。 tabindex =0的使用无帮助。

But I would like to avoid tab stop on such elements. Usage of tabindex="0" doesn't help. How can I do the same?

推荐答案

您可以将tabindex设置为比页面的所有其他元素更高的值方式没有js)。禁用此操作会导致辅助功能问题。

You can set the tabindex to a higher value then all other elements of the page (unique way without js). Disabling this causes accessibility issues.

人们使用选项卡在元素之间导航,一些软件使用它作为导航顺序等因素。 (更多细节: http://accessibleculture.org/articles/2010/05/tabindex )。如果你的目标是隐藏这个链接从屏幕阅读器和人有一些限制,没有问题。

People use tabs to navigate between elements and some softwares use this as the navigation order among other factors. (More detail here: http://accessibleculture.org/articles/2010/05/tabindex). If your objective is hide this link from screen readers and people with some limitations, there's no problem through.

这篇关于如何避免标签停在链接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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