如何更改或分配radiobox的背景图像? [英] How can I change or assign background image of a radiobox?

查看:81
本文介绍了如何更改或分配radiobox的背景图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试了以下但没有成功:



< input type =radiostyle =bacground-image:url(Some-url.jpg); background-color:#SomeColorsize =35px>



实际上没有任何变化。



我需要通过任何方式或方法改变单选按钮的颜色。我该怎么办?

I tried the following without success:

<input type="radio" style="bacground-image:url(Some-url.jpg); background-color:#SomeColor" size="35px">

In fact there was no change whatsoever.

I need to change the color of the radio button through any way or approach possible. How do I do that?

推荐答案

请看我对这个问题的评论。可能有很多不同的解决方案,而且,这是一个非常受欢迎的主题,在网上解释的解决方案太多了:

http://webdesign.tutsplus.com/articles/quick-tip-easy-css3-checkboxes-and- radio-buttons - webdesign-8953

http:/ /ryanfait.com/resources/custom-checkboxes-and-radio-buttons

http ://codepen.io/mitchmc/pen/pebIx

http ://www.hongkiat.com/blog/css3-checkbox-radio

,毕竟, http://bit.ly/1yo6E29



-SA
Please see my comment to the question. There can be so-ooo many different solutions, moreover, this is a very popular topic, there are too many solutions explained on the Web:
http://webdesign.tutsplus.com/articles/quick-tip-easy-css3-checkboxes-and-radio-buttons--webdesign-8953,
http://ryanfait.com/resources/custom-checkboxes-and-radio-buttons,
http://codepen.io/mitchmc/pen/pebIx,
http://www.hongkiat.com/blog/css3-checkbox-radio,
and, after all, http://bit.ly/1yo6E29.

—SA


这篇关于如何更改或分配radiobox的背景图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆