<
div
style
=
"
margin
:
100px auto
;
width
:
20%
;
"
>
<
input
type
=
"
checkbox
"
name
=
"
"
id
=
"
"
>
<
input
type
=
"
checkbox
"
name
=
"
"
id
=
"
"
>
</
div
>
</
body
>
</
html
>
1.直接复制到
css
中 就可以改变
样式
2.
颜色
可以自行
修改
input[type="
checkbox
"]{width:20px;height:20px;display: inline-block;text-align: center;vertical-align: middle; line-height: 18px;position: relative;}
input[type="checkb...