更改复选框和单选按钮的边框颜色 [英] Change the border color of the checkbox and radio button

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

问题描述

如何使用CSS更改复选框和单选按钮的边框颜色(圆形和矩形颜色)?



我尝试了很多,但没有得到正确的。 / p>

请指教我?

解决方案

但是,有一个解决方法,其中实际的复选框是不可见的,样式标签用作覆盖。看起来不错,效果很好。



有关详情: http://css-tricks.com/the-checkbox-hack/


How to change the border color of the checkbox and radio button (circle and rectangle color) using CSS?

I tried lot but not getting a correct one.

Please advice me?

解决方案

It simply is not possible. However, there is a workaround where the actual checkbox is made invisible and the styled label is used as an overlay. Looks good and works fine.

More about it here: http://css-tricks.com/the-checkbox-hack/

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

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