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

    <small id='4YanM'></small><noframes id='4YanM'>

      <tfoot id='4YanM'></tfoot>
    1. <legend id='4YanM'><style id='4YanM'><dir id='4YanM'><q id='4YanM'></q></dir></style></legend>
      • <bdo id='4YanM'></bdo><ul id='4YanM'></ul>

    2. 更改单选按钮的背景颜色

      时间:2023-10-20

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

          • <legend id='CWZen'><style id='CWZen'><dir id='CWZen'><q id='CWZen'></q></dir></style></legend>

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

              <bdo id='CWZen'></bdo><ul id='CWZen'></ul>
                  <tbody id='CWZen'></tbody>
                本文介绍了更改单选按钮的背景颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                是否可以像在 IE 中一样更改 Firefox/Chrome 中单选按钮输入的背景颜色?(不使用图片)

                Is it possible to change the background color of a radio button input in Firefox/Chrome like in IE? (Without using images)

                在 IE(<9) 和 Firefox/Chrome 中运行:

                Run this in both IE(<9) and Firefox/Chrome:

                input[type="radio"] {
                  background: red;
                }

                <input type="radio" /> RadioButton

                查看JSFiddle

                推荐答案

                简短的回答是不".

                即使您确实设法获得了在一个浏览器中运行的东西,浏览器对表单控件的处理方式也往往截然不同,这意味着几乎不可能实现跨浏览器兼容性.

                Even if you do manage to get something that works in one browser, browsers tend to handle form controls very differently, meaning it's nigh impossible to achieve cross-browser compatibility.

                令人失望,我知道.查看这篇文章了解更多信息:http://www.456bereastreet.com/archive/200409/style_form_controls/

                Disappointing, I know. Check out this article for more info: http://www.456bereastreet.com/archive/200409/styling_form_controls/

                顺便问一下,为什么要更改背景颜色?通常,单选按钮背景只会选取其容器的背景颜色.

                Just by the way, why do you want to change the background color? Generally a radio button background will just pick up the background color of its container.

                这篇关于更改单选按钮的背景颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:打开页面的单选按钮 下一篇:如何统一来自多组单选按钮和多组复选框的文本?

                相关文章

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

                    <tfoot id='45Tnf'></tfoot>
                      <bdo id='45Tnf'></bdo><ul id='45Tnf'></ul>
                  1. <legend id='45Tnf'><style id='45Tnf'><dir id='45Tnf'><q id='45Tnf'></q></dir></style></legend>

                    <small id='45Tnf'></small><noframes id='45Tnf'>