Checkboxes in web pages – how to make them bigger?

前端 未结 7 1135
南笙
南笙 2021-01-30 01:57

The standard checkboxes rendered in most browsers are quite small and don’t increase in size even when a larger font is used. What is the best, browser-independent way to displ

相关标签:
7条回答
  • 2021-01-30 02:49

    I tried changing the padding and margin and well as the width and height, and then finally found that if you just increase the scale it'll work:

    input[type=checkbox] {
        transform: scale(1.5);
    }
    
    0 讨论(0)
提交回复
热议问题