Chrome中的双倍大小复选框

Vla*_*aly 6 css google-chrome

除Chrome以外的所有浏览器都会显示以下样式

.my-checkbox {
    width: 20px;
    height:20px;
    color:#fff;
    -moz-appearance:none;
    -webkit-appearance:none;
    -o-appearance:none;
    border: 0px inset ThreeDFace ! important;
    margin: 5px;
    padding: 5px;
}
Run Code Online (Sandbox Code Playgroud)

示例:http://jsfiddle.net/sJxst/

这种方法在Chrome中可行吗?

小智 3

有一个 jquery 插件可以做到这一点..我不知道 Chrome 的任何其他方法

http://archive.plugins.jquery.com/project/ui-checkbox

还要检查一下:

input.checkbox { display: none }
input.checkbox + label > span.checkbox-span { display: inline-block; color: #FFF; border: 1px solid #000; width: 30px; line-height: 30px; font-size: 24px; text-align: center }
input.checkbox:checked + label > span.checkbox-span { color: #000 }
Run Code Online (Sandbox Code Playgroud)

http://jsfiddle.net/KfjuS/4/