0

我的理解是,在元素上使用-moz-user-focus: ignore参见 doc)时,Firefox 应该在切换时跳过该元素。但是,请尝试:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    </head>
    <body>
        <form action="/">
            <input type="text" value="First">
            <input type="text" value="Second" style="-moz-user-focus: ignore">
            <input type="text" value="Third">
        </form>
    </body>
</html>
  1. 第一次点击标签:你在第一个文本字段上。
  2. 再次点击选项卡:您在第二个文本字段中,尽管-moz-user-focus: ignore. 我在这里错过了什么吗?
4

1 回答 1

1

在 Mozilla 错误库中似乎有一个涵盖此问题的错误。在修复此错误之前,我们可以使用tabindex="-1"CSS 代替作为解决方法。

于 2010-09-08T23:14:47.547 回答