How do I change the color of radio buttons?

2019-01-03 06:34发布

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?

14条回答
做个烂人
2楼-- · 2019-01-03 07:02

This is not possible by native CSS. You'll have to use background images and some javascript tricks.

查看更多
看我几分像从前
3楼-- · 2019-01-03 07:04

A clever way to do it would be to create a separate div with a height and width of -for example- 50px and then a radius of 50px lay this over your radio buttons...

查看更多
登录 后发表回答