首页 技术 正文
技术 2022年11月18日
0 收藏 598 点赞 4,260 浏览 970 个字

我有用过这个纯修改input属性的

本人修改后的代码和效果图(修的不好), 这个是改动最简单的:

纯CSS修改checkbox复选框样式-02

css代码

input[type=checkbox]{
visibility: hidden;
}input[type="checkbox"]{
-webkit-appearance: none;
vertical-align:middle;
margin-top:;
background:#fff;
border:#999 solid 1px;
border-radius: 3px;
min-height: 12px;
min-width: 12px;
}
input[type="checkbox"]:checked {
background: #E75213;
}
input[type=checkbox]:checked::after{
content: '\EA06';
top: 3px;
left: 3px;
position: absolute;
background: white;
border: #fff solid 2px;
border-top: none;
border-right: none;
height: 6px;
width: 10px;
-moz-transform: rotate(-45deg);
-ms-transform: rotate(-45deg);
-webkit-transform: rotate(-45deg);
transform: rotate(-45deg);
}

HTML代码

<div>
<input type="checkbox" />
</div>

参考链接:https://blog.csdn.net/qq_27717857/article/details/80684375

搜索中其他一些不错的博客; 参考以下博客, 但是不够理想

https://blog.csdn.net/u014291497/article/details/52081774

这个JS比较复杂, 可以参看

https://blog.csdn.net/iteye_19312/article/details/82582849

http://www.freejs.net/demo/214/index.html

这个概括类的博客不错

https://blog.csdn.net/hyzhang6/article/details/78780871

相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:9,083
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,558
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,407
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,180
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:7,817
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:4,900