change checkbox border color

此生再无相见时 提交于 2020-01-13 08:49:26

问题


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


回答1:


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.

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.




回答2:


Checkboxes are notorious for behaving differently to styles for each browser that renders them. As Nick Craver commented, images are the only reliable way to style checkboxes safely.



来源:https://stackoverflow.com/questions/3044983/change-checkbox-border-color

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!