如何在没有class和id的情况下更改复选框大小(globaly)?是否有可能以这样的方式做到这一点:
input[type=checkbox] {
zoom: 1.5;
}
Run Code Online (Sandbox Code Playgroud)
Cha*_*haa 72
input字段可以根据需要设置样式.因此,您可以拥有,而不是缩放
input[type="checkbox"]{
width: 30px; /*Desired width*/
height: 30px; /*Desired height*/
}
Run Code Online (Sandbox Code Playgroud)
编辑:
你必须添加这样的额外规则:
input[type="checkbox"]{
width: 30px; /*Desired width*/
height: 30px; /*Desired height*/
cursor: pointer;
-webkit-appearance: none;
appearance: none;
}
Run Code Online (Sandbox Code Playgroud)
检查这个小提琴http://jsfiddle.net/p36tqqyq/1/
Shr*_*awa 26
你可能想要这样做.
input[type=checkbox] {
-ms-transform: scale(2); /* IE */
-moz-transform: scale(2); /* FF */
-webkit-transform: scale(2); /* Safari and Chrome */
-o-transform: scale(2); /* Opera */
padding: 10px;
}
Run Code Online (Sandbox Code Playgroud)
Gen*_*dia 14
试试这个
<input type="checkbox" style="zoom:1.5;" />
/* The value 1.5 i.e., the size of checkbox will be increased by 0.5% */
Run Code Online (Sandbox Code Playgroud)