<bdo id='toISy'></bdo><ul id='toISy'></ul>
  • <i id='toISy'><tr id='toISy'><dt id='toISy'><q id='toISy'><span id='toISy'><b id='toISy'><form id='toISy'><ins id='toISy'></ins><ul id='toISy'></ul><sub id='toISy'></sub></form><legend id='toISy'></legend><bdo id='toISy'><pre id='toISy'><center id='toISy'></center></pre></bdo></b><th id='toISy'></th></span></q></dt></tr></i><div id='toISy'><tfoot id='toISy'></tfoot><dl id='toISy'><fieldset id='toISy'></fieldset></dl></div>

    1. <small id='toISy'></small><noframes id='toISy'>

      <tfoot id='toISy'></tfoot>

      <legend id='toISy'><style id='toISy'><dir id='toISy'><q id='toISy'></q></dir></style></legend>

        您可以浏览所有单选按钮吗?

        Can you tab through all radio buttons?(您可以浏览所有单选按钮吗?)
      1. <small id='JbNbu'></small><noframes id='JbNbu'>

        <i id='JbNbu'><tr id='JbNbu'><dt id='JbNbu'><q id='JbNbu'><span id='JbNbu'><b id='JbNbu'><form id='JbNbu'><ins id='JbNbu'></ins><ul id='JbNbu'></ul><sub id='JbNbu'></sub></form><legend id='JbNbu'></legend><bdo id='JbNbu'><pre id='JbNbu'><center id='JbNbu'></center></pre></bdo></b><th id='JbNbu'></th></span></q></dt></tr></i><div id='JbNbu'><tfoot id='JbNbu'></tfoot><dl id='JbNbu'><fieldset id='JbNbu'></fieldset></dl></div>

              <legend id='JbNbu'><style id='JbNbu'><dir id='JbNbu'><q id='JbNbu'></q></dir></style></legend>
                  <bdo id='JbNbu'></bdo><ul id='JbNbu'></ul>
                  <tfoot id='JbNbu'></tfoot>
                    <tbody id='JbNbu'></tbody>
                  本文介绍了您可以浏览所有单选按钮吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我有一个单选按钮列表.当我浏览它们时,似乎只有第一个单选按钮或被选中的单选按钮将获得焦点,其余单选按钮将被跳过.复选框没有这个问题.

                  I have a list of radio buttons. when I tab through them, seems like only the first radio button or the one that is selected will get focused, the rest of the radio buttons will get skipped. checkbox didnt have this problem.

                  http://jsfiddle.net/2Bd32/

                  我很难向我的 QA 解释这不是错误.有人可以向我解释为什么会发生这种情况.

                  I have a hard time to explain to my QA this is not a bug. can someone please explain to me why this happens.

                  Soccer: <input type="checkbox" name="sports" value="soccer"  tabindex="1" /><br />
                  Football: <input type="checkbox" name="sports" value="football"  tabindex="2" /><br /> 
                  
                  <input type="radio" name="num" value="3" tabindex="3">3<br>
                  <input type="radio" name="num" value="4" tabindex="4">4<br>
                  <input type="radio" name="num" value="5" tabindex="5">5<br>
                  <input type="radio" name="num" value="6" tabindex="6">6<br>
                  <input type="radio" name="num" value="7" tabindex="7">7<br>
                  
                  Baseball: <input type="checkbox" name="sports" value="baseball"  tabindex="8"  /><br /> 
                  Basketball: <input type="checkbox" name="sports" value="basketball"  tabindex="9"  />
                  

                  推荐答案

                  你可以引用 W3C 作为你的来源,这里和这里.

                  You can cite the W3C as your source, here and here.

                  本质上,单选按钮是一个作为单个元素起作用的组,因为它只保留一个值.切换到单选组将带您进入第一个项目,然后使用箭头键在组内导航.

                  Essentially a radio button is a group that functions as a single element since it retains only a single value. Tabbing to a radio group will bring you to the first item and then using the arrow keys you navigate within the group.

                  • 焦点可以通过以下方式移动到单选组:
                    • Tab 键
                    • 针对标签的访问密钥或助记符
                    • 激活标签(通过辅助技术机制)
                    • Tab 键按下移动焦点到组中的第一个单选按钮,但不选择单选按钮.
                    • Shift+Tab 按键移动焦点到最后一个电台组中的按钮,但不选择单选按钮.
                    • 向上箭头键按下移动焦点和通过组中的单选按钮向前选择.如果第一个单选按钮有焦点,然后焦点和选择移到最后组中的单选按钮.
                    • 向下箭头键按下移动焦点并通过组中的单选按钮向后选择.如果最后一个单选按钮有焦点,然后焦点和选择移动到组中的第一个单选按钮.*空格键按下检查当前具有焦点的单选按钮.

                    这篇关于您可以浏览所有单选按钮吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                    本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  keeping radio buttons checked after form submit(表单提交后保持选中单选按钮)
                  Styling radio button - not work in IE and Firefox(样式单选按钮 - 在 IE 和 Firefox 中不起作用)
                  Bootstrap radio button quot;checkedquot; flag(Bootstrap 单选按钮“已选中旗帜)
                  Toggle HTML radio button by clicking its label(通过单击标签来切换 HTML 单选按钮)
                  Javascript how to change radio button label text?(Javascript如何更改单选按钮标签文本?)
                  How can I automatically select specific radio buttons with Greasemonkey?(如何使用 Greasemonkey 自动选择特定的单选按钮?)
                • <small id='4D5XU'></small><noframes id='4D5XU'>

                  1. <legend id='4D5XU'><style id='4D5XU'><dir id='4D5XU'><q id='4D5XU'></q></dir></style></legend>
                      <bdo id='4D5XU'></bdo><ul id='4D5XU'></ul>
                        1. <i id='4D5XU'><tr id='4D5XU'><dt id='4D5XU'><q id='4D5XU'><span id='4D5XU'><b id='4D5XU'><form id='4D5XU'><ins id='4D5XU'></ins><ul id='4D5XU'></ul><sub id='4D5XU'></sub></form><legend id='4D5XU'></legend><bdo id='4D5XU'><pre id='4D5XU'><center id='4D5XU'></center></pre></bdo></b><th id='4D5XU'></th></span></q></dt></tr></i><div id='4D5XU'><tfoot id='4D5XU'></tfoot><dl id='4D5XU'><fieldset id='4D5XU'></fieldset></dl></div>
                          <tfoot id='4D5XU'></tfoot>
                              <tbody id='4D5XU'></tbody>