更改复选框边框颜色 [英] change checkbox border color
问题描述
可以使用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屋!