Firefox 如何获得-moz用户焦点:忽略工作?

Firefox 如何获得-moz用户焦点:忽略工作?,firefox,tabbing,Firefox,Tabbing,我的理解是,当在一个元素上使用-moz user focus:ignore()时,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

我的理解是,当在一个元素上使用
-moz user focus:ignore
()时,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>

  • 第一次点击tab:您位于第一个文本字段
  • 第二次点击tab:您位于第二个文本字段,尽管有
    -moz用户焦点:ignore
    。我是不是遗漏了什么
  • Mozilla的bug库中似乎有一个漏洞。在修复此错误之前,我们可以使用
    tabindex=“-1”
    代替CSS作为解决方法