【问题标题】:Issue with Chrome, tabindex and radio buttonsChrome、tabindex 和单选按钮的问题
【发布时间】:2013-10-01 00:38:11
【问题描述】:

It seems Chrome doesn't register tabindex on radio button 默认情况下。

如果您点击其中一个单选按钮然后按下 tab,chrome 将聚焦页面中的第一个链接
如果你点击另一种类型的输入元素,他会在表单中继续,如预期的那样

If you put tabindex everywhere,表单将大部分按预期工作,除非您选择(单击)单选按钮,然后 tabbing 将选择 first 表单元素。

如何重现与 IE/FF 相同的体验?

【问题讨论】:

  • 如果您在单选按钮上使用 jQuery 按钮集,这个问题会更加复杂..

标签: google-chrome radio-button tabindex


【解决方案1】:

我也遇到过这个问题。
我发现如果你给每个单选按钮它自己的
~name=unique
~name=unique2
~name=unique3
tabindex 会起作用。
看看这个网站: Form Trick: Set the Tabbing Order
您可以看到他如何为所有单选按钮设置不同的名称值。

希望有所帮助, 戴安娜

【讨论】:

  • 这不会破坏单选按钮的grouping 功能吗?
猜你喜欢
  • 2023-03-31
  • 2013-12-30
  • 1970-01-01
  • 1970-01-01
  • 2012-12-31
  • 2013-11-18
  • 1970-01-01
  • 2014-02-10
  • 1970-01-01
相关资源
最近更新 更多