更改复选框边框颜色 [英] change checkbox border color

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

问题描述

可以使用css或jquery更改复选框的边框颜色。我想只改变边框颜色的复选框。

can i change border color of checkbox by use css or jquery. i want change only border color of check box.

推荐答案

如果你想这样做与纯CSS,这个结果适用于所有浏览器。如果您使用jqueryUI,则有一些复选框的实现,例如 this

if you want to do this with pure css, you won't get an result that works in all browsers. if you use jqueryUI there are some implementations of checkboxes like this or this. otherwise you'll have to do something similar by yourself using images.

编辑:

请注意:截至今天(2015年3月),这篇文章是大约5年 - 当时,IE6仍然有大约10%的市场份额,甚至最新的IE(版本8当时)是糟糕的地狱。
此答案在技术上已过时

edit:
please note: as of today (march 2015) this post is about 5 years old - back then, the IE6 still had a market share of about 10% and even the newest IE (Version 8 at that time) was crappy as hell. This answer is technically outdated nowadays.

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

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