CSS: Size of buttons in Chrome is different than Firefox

后端 未结 8 891
名媛妹妹
名媛妹妹 2021-01-31 10:18

I have the following HTML code:


...
...
8条回答
  •  不要未来只要你来
    2021-01-31 11:12

    The thing that no one is mentioning here is that Chrome resets the CSS for these elements:

    input[type="button"],
    input[type="submit"],
    input[type="reset"],
    input[type="file"]::-webkit-file-upload-button,
    button
    

    So no matter what you set the padding to, as far as I can tell, it will be overridden by Chrome. I have tried using !important as well as other techniques and still no luck. If anyone has any insight into this I would love to know.

提交回复
热议问题