如何更改单选按钮的颜色? [英] How do I change the color of radio buttons?

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

问题描述

我的意思是,单选按钮本身由一个圆形和一个点在中心(当选择按钮时)。我想改变的是两者的颜色。这可以使用CSS吗?

I mean, a radio button itself consists of a round shape and a dot at the center (when the button is selected). What I want to change is the color of both. Can this be done using CSS?

推荐答案

单选按钮是特定于每个操作系统/浏览器的本机元素。没有办法更改其颜色/样式,除非您要实现自定义图像或使用包含图像的自定义Javascript库(例如 this

A radio button is a native element specific to each OS/browser. There is no way to change its color/style, unless you want to implement custom images or use a custom Javascript library which includes images (e.g. this)

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

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