失眠网,内容丰富有趣,生活中的好帮手!
失眠网 > 如何利用纯CSS改变html?radio/checkbox默认背景颜色样式

如何利用纯CSS改变html?radio/checkbox默认背景颜色样式

时间:2021-02-14 14:04:41

相关推荐

如何利用纯CSS改变html?radio/checkbox默认背景颜色样式

web前端|css教程

CSS改变html,radio/checkbox默认背景颜色

web前端-css教程

本篇文章给大家带来的内容是关于如何利用纯CSS改变html?radio/checkbox默认背景颜色样式,有一定的参考价值,有需要的朋友可以参考一下,希望对你有所帮助。

仿网易asp彩票源码含app,下载ubuntu历史版本,tomcat绿色版怎么用,骷髅爬虫出处,vue和php后端结合,餐饮seo公司lzw

手游源码ios andriod,ubuntu查询pyqt版本,tomcat7访问不到主页,爬虫可以玩吗,php和html哪个学校好,荟网 seolzw

CSS代码:

微擎模块如何获得前台源码,ubuntu搜索不到蓝牙,爬虫淘宝新宝贝,php arrpush,静态 动态seolzw

input[type=checkbox] { margin-right: 5px; cursor: pointer; font-size: 14px; width: 15px; height: 12px; position: relative;}input[type=checkbox]:after { position: absolute; width: 10px; height: 15px; top: 0; content: " "; background-color: #ff0000; color: #fff; display: inline-block; visibility: visible; padding: 0px 3px; border-radius: 3px;}input[type=checkbox]:checked:after { content: "✓"; font-size: 12px;}input[type=radio] { margin-right: 5px; cursor: pointer; font-size: 14px; width: 15px; height: 12px; position: relative;}input[type=radio]:after { position: absolute; width: 10px; height: 15px; top: 0; content: " "; background-color: #ff0000; color: #fff; display: inline-block; visibility: visible; padding: 0px 3px; border-radius: 50%;}input[type=radio]:checked:before { content: "✓"; display: block; position: relative; top: -2px; left: 3px; width: 6px; height: 6px; color: #fff; font-weight: 400; z-index: 1;}

HTML 示例:

plus

minus

plus

minus

如果觉得《如何利用纯CSS改变html?radio/checkbox默认背景颜色样式》对你有帮助,请点赞、收藏,并留下你的观点哦!

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。