修改了下,测试过了可以 input{ position: relative; background-color: blue; width: 20px; height: 20px; border: 0; outline: 0; -webkit-appearance: none; -webkit-tap-highlight-color: transparent; font-size: inherit; color: inherit; } input:checked { background-color: red; border: 1px solid red; text-align: center; background-clip: padding-box; }
修改了下,测试过了可以