我会将复选框制作成图像,请参阅小提琴https://jsfiddle.net/0c26tqd7/1/
编辑我在小提琴的选中复选框上添加了一个红色边框
html
<input type="checkbox" name='thing1' id="thing1"/><label for="thing1"></label>
Run Code Online (Sandbox Code Playgroud)
css
input[type=checkbox] {
display:none;
}
input#thing1[type=checkbox] + label
{
background-image: url("http://lorempixel.com/50/50/");
height: 50px;
width: 50px;
display:inline-block;
padding: 0 0 0 0px;
}
Run Code Online (Sandbox Code Playgroud)