//修改input checkbox背景色
.checkboxInput {
outline: 0;
border: 0;
width: 0.9vw;
height: 0.9vw;
cursor: pointer;
accent-color:#0075FF;
}
input[type='checkbox']:checked:after{
content: '\2713';
background-color: #0075FF;
position: absolute;
outline: 0;
border: 0;
font-size: 0.75vw;
font-weight: 600;
color: #fff;
width: 0.8vw;
height: 0.8vw;
border-radius: 2px;
display: flex;
justify-content: center;
align-items: center;
}
CSS修改input checkbox radio的颜色
最新推荐文章于 2024-05-17 15:10:15 发布