没有类和ID的情况下如何更改复选框大小(全局)?是否可以通过与以下方式不同的方式执行此操作:
input[type=checkbox] {
zoom: 1.5;
}
input
您可以根据需要设置字段的样式。因此,除了变焦之外,您还可以
input[type="checkbox"]{
width: 30px; /*Desired width*/
height: 30px; /*Desired height*/
}
编辑:
您将必须添加以下额外规则:
input[type="checkbox"]{
width: 30px; /*Desired width*/
height: 30px; /*Desired height*/
cursor: pointer;
-webkit-appearance: none;
appearance: none;
}
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句