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

      <bdo id='ne50M'></bdo><ul id='ne50M'></ul>
    <tfoot id='ne50M'></tfoot>
    <legend id='ne50M'><style id='ne50M'><dir id='ne50M'><q id='ne50M'></q></dir></style></legend>
    1. <small id='ne50M'></small><noframes id='ne50M'>

      如何将文本放在单选按钮内?

      How to put text inside radio button?(如何将文本放在单选按钮内?)
    2. <i id='0wOb6'><tr id='0wOb6'><dt id='0wOb6'><q id='0wOb6'><span id='0wOb6'><b id='0wOb6'><form id='0wOb6'><ins id='0wOb6'></ins><ul id='0wOb6'></ul><sub id='0wOb6'></sub></form><legend id='0wOb6'></legend><bdo id='0wOb6'><pre id='0wOb6'><center id='0wOb6'></center></pre></bdo></b><th id='0wOb6'></th></span></q></dt></tr></i><div id='0wOb6'><tfoot id='0wOb6'></tfoot><dl id='0wOb6'><fieldset id='0wOb6'></fieldset></dl></div>

      <tfoot id='0wOb6'></tfoot>

      • <bdo id='0wOb6'></bdo><ul id='0wOb6'></ul>
        1. <small id='0wOb6'></small><noframes id='0wOb6'>

          <legend id='0wOb6'><style id='0wOb6'><dir id='0wOb6'><q id='0wOb6'></q></dir></style></legend>

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

                问题描述

                我正在尝试将一个字母放在单选按钮(使用 Materialize 框架)中,例如此

                I am trying to put a letter inside a radio button (with Materialize framework) like the A and B in this image.

                How do I do this?

                解决方案

                You cannot do that. But instead, you can make something similar using CSS:

                label {display: block; padding: 5px; position: relative; padding-left: 20px;}
                label input {display: none;}
                label span {border: 1px solid #ccc; width: 15px; height: 15px; position: absolute; overflow: hidden; line-height: 1; text-align: center; border-radius: 100%; font-size: 10pt; left: 0; top: 50%; margin-top: -7.5px;}
                input:checked + span {background: #ccf; border-color: #ccf;}

                <h3>Select One</h3>
                <label><input type="radio" name="select" /><span>a</span> Item 1</label>
                <label><input type="radio" name="select" /><span>b</span> Item 2</label>

                Preview

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

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

                相关文档推荐

                keeping radio buttons checked after form submit(表单提交后保持选中单选按钮)
                Styling radio button - not work in IE and Firefox(样式单选按钮 - 在 IE 和 Firefox 中不起作用)
                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 自动选择特定的单选按钮?)
                How to customize radio button in html(如何在html中自定义单选按钮)

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

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

                          <tbody id='ixmWw'></tbody>
                          <bdo id='ixmWw'></bdo><ul id='ixmWw'></ul>
                          <legend id='ixmWw'><style id='ixmWw'><dir id='ixmWw'><q id='ixmWw'></q></dir></style></legend>