<style type="text/css">
.chk_1 {
width: 20px;
height: 20px;
position: absolute;
top: 15px;
left: 10px;
}
.chk_1 + label {
background: #ccc;
width: 20px;
height: 20px;
display: inline-block;
position: absolute;
top: 17px;
left: 12px;
}
.chk_1:checked + label {
background:red;
}
</style>
</head>

<body>
<input type="checkbox" >
<label for="checkbox_a1"></label>
</body>

 

相关文章:

  • 2021-12-04
  • 2022-02-09
  • 2022-12-23
  • 2021-05-04
  • 2021-12-22
  • 2021-04-28
  • 2021-10-24
猜你喜欢
  • 2022-01-28
  • 2022-12-23
  • 2021-09-22
  • 2022-02-08
  • 2022-12-23
  • 2021-10-15
  • 2021-10-03
相关资源
相似解决方案