Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/search/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html Firefox tabindex不遵循源代码顺序_Html_Firefox_Tabindex - Fatal编程技术网

Html Firefox tabindex不遵循源代码顺序

Html Firefox tabindex不遵循源代码顺序,html,firefox,tabindex,Html,Firefox,Tabindex,Chrome上的标签很好地遵循了这个表单的源代码顺序,而Firefox跳过了密码重置链接,直接进入表单后面的下一个按钮。Firefox是否将按钮和表单元素优先于选项卡索引的链接?我放在链接上的索引号没有任何区别 <form method="POST" action="/login" accept-charset="UTF-8"> <label><span class="element-invisible">Email address</span

Chrome上的标签很好地遵循了这个表单的源代码顺序,而Firefox跳过了密码重置链接,直接进入表单后面的下一个按钮。Firefox是否将按钮和表单元素优先于选项卡索引的链接?我放在链接上的索引号没有任何区别

<form method="POST" action="/login" accept-charset="UTF-8">

    <label><span class="element-invisible">Email address</span>
        <input placeholder="Email address" name="login_email" type="email"> 
    </label>
    <label><span class="element-invisible">Password</span>
        <input placeholder="Password" name="login_password" value="" type="password">
    </label>
        <input class="buttonNoStyle submitButtonSolid" value="Login" type="submit">

    <div class="underForm">
        <input id="rememberMe" name="remember" class="element-invisible" value="all" checked="" type="checkbox">
        <label class="rememberMe" for="rememberMe">
            Remember me
        </label>

        <div class="forgot">|&nbsp;&nbsp; <a tabindex="1" class="forgotLink" href="/password/reset">Forgotten password</a></div>

    </div><!-- /underForm -->

</form>
<button type="button" class="buttonNoStyle standardButton thinnerButton whiteButton" id="logIn2">Log in</button>

在我的测试中,Firefox和Chrome的代码与问题中的代码完全相同:“忘记密码”首先是按标签顺序排列的,然后是按源代码顺序排列的其他字段。这符合规范。那么问题是什么呢?如果您想要严格的源代码顺序,只需省略tabindex=1.hmm,您是在PC机上还是在Mac@JukkaK.Korpela上?我在mac上…@Goff,我在PC上Windows 7。在PC上工作正常,mac FF坏了