本文介绍了更改背景 - 单选按钮的颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在Firefox / Chrome中更改输入收音机的背景颜色,就像在IE中一样?
(不使用图片)

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

在IE(< 9)和Firefox / Chrome

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

感谢

推荐答案

简短的回答是否。

即使你设法得到在一个浏览器中工作的东西,浏览器也倾向于处理表单控件,这意味着几乎不可能实现跨浏览器兼容性。

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.

失望,我知道。请参阅这篇文章,了解详情:

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.

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

08-10 23:10