Make checkbox in chrome look like one in IE

前端 未结 4 1232
长情又很酷
长情又很酷 2021-01-15 02:05

The checkbox in IE and chrome looks different.

Chrome

\"enter

4条回答
  •  一整个雨季
    2021-01-15 02:44

    You can use "filter: brightness" which doesn't work in IE so it doesn't affect IE but can make the chrome checkbox and radio buttons look almost white with something like this:

    input[type="checkbox"],
    input[type="radio"] {
        filter: brightness(1.2);
    }
    
    /* Set disabled back to grey */
    input[type="checkbox"]:disabled,
    input[type="radio"]:disabled {
        filter: brightness(0.9);
    }
    

提交回复
热议问题