Safari 忽略 tabindex [英] Safari ignoring tabindex

查看:42
本文介绍了Safari 忽略 tabindex的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在文本框旁边有 2 个按钮,在 2 个按钮之后有另一个文本框.第一个文本框的 tabindex 为 1000,第一个按钮为 1001,第二个按钮为 1002.第二个文本框的 tabindex 为 1003.

I have 2 buttons next to a textbox and another textbox after the 2 buttons. The tabindex for the first textbox is 1000, the first button is 1001 and the second button is 1002. The second textbox has a tabindex of 1003.

当我按下 Tab 键时,tabindex 在除 Safari 之外的所有浏览器中都能正常工作,尽管 tabindex 已正确设置,但它会立即从第一个文本框移动到第二个文本框.关于如何防止此问题的任何想法?

When I press tab, the tabindex works fine in all browsers except for Safari, where it immediately moves from the first textbox to the second textbox although the tabindex has been set properly. Any ideas on how to prevent this issue?

推荐答案

默认情况下,在 safari(!) 中禁用选项卡访问.要启用它,请选中首选项 > 高级 > 按 Tab 键突出显示页面上的每个项目".

By default tab-access is disabled in safari(!). To enable it, check "Preferences > Advanced > Press tab to highlight each item on a page".

这篇关于Safari 忽略 tabindex的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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