difference between Firefox and Chrome padding

后端 未结 6 486
野趣味
野趣味 2021-02-05 04:56

there is a difference in how firefox and chrome render the padding in css. what appears correct in chrome is extra padded in firefox. is there a way to solve?

.b         


        
6条回答
  •  梦谈多话
    2021-02-05 05:39

    You are actually correct - there is a bug in Firefox where the button element's line height cannot be changed with the CSS line-height property.

    See this link for details: http://www.cssnewbie.com/input-button-line-height-bug/

    The solution is to use padding instead of line-height.

提交回复
热议问题