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

    <small id='6q2cf'></small><noframes id='6q2cf'>

    <tfoot id='6q2cf'></tfoot>

        你如何使单选按钮文本也可点击?

        How do you make the radio button text to be clickable too?(你如何使单选按钮文本也可点击?)
          <bdo id='Gfbaj'></bdo><ul id='Gfbaj'></ul>

          <small id='Gfbaj'></small><noframes id='Gfbaj'>

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

                    <tbody id='Gfbaj'></tbody>
                  本文介绍了你如何使单选按钮文本也可点击?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我有这个单选按钮(以及其他一些在这个之后):

                  i have this radio button (and some other after this one):

                  <input type="radio" name="group1" value="Milk"> Milk<br>
                  

                  但如果我想激活单选按钮,我必须单击它,单击按钮右侧的牛奶"一词不会激活它.我该怎么做?到目前为止,我发现的有关单选按钮的所有示例都有相同的问题.提前致谢.

                  But if i want to activate the radio button, i have to click it, clicking the word "Milk" which is to the right of the button, doesn't activate it. How can i do that?, all the examples i found about radio buttons so far, have the same issue. Thanks in advance.

                  推荐答案

                  这里要使用label标签.

                  Here you want to use the label tag.

                  类似:

                              <label>
                                  <input type="radio" name="group1" value="Milk">
                                  Milk
                              </label><br/>
                  

                  标签告诉浏览器其中包含的所有内容都应该被视为一个元素(就文本而言.它们不是 div)

                  Labels tell the browser that everything contained within should be treated as one element (in terms of text. They are not divs)

                  看看这个例子:http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_label

                  这篇关于你如何使单选按钮文本也可点击?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  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 自动选择特定的单选按钮?)

                        <tfoot id='aAzxR'></tfoot>
                          <bdo id='aAzxR'></bdo><ul id='aAzxR'></ul>

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

                          • <small id='aAzxR'></small><noframes id='aAzxR'>