| <input class="check-input" type="checkbox"> |
复制
| .check-input { |
| width: 16px; |
| height: 16px; |
| } |
| |
| |
| input.check-input[type="checkbox"] { |
| -webkit-appearance: none; |
| border: 1px solid #999; |
| outline: none; |
| border-radius: 2px; |
| border: 1px solid #4C4E4F; |
| background: #FFF; |
| position: relative; |
| } |
| |
| |
| input.check-input[type="checkbox"]:checked { |
| background-color: red; |
| } |
| |
| #europe-collection-list input.check-input[type="checkbox"]:checked::after { |
| content: ""; |
| display: block; |
| width: 15px; |
| height: 15px; |
| position: absolute; |
| background-image: url('https://files/check_d92be03b-2b9b-4819-8e5f-169818b5d9e8.svg'); |
| background-position: center; |
| background-repeat: no-repeat; |
| background-size: contain; |
| } |
复制
更改后的样式
