<input> has mysterious bottom padding

前端 未结 4 1836
渐次进展
渐次进展 2020-12-16 22:00

I am trying to do some quite precise styling on some form elements, and this issue is causing me a lot of grief.

If I try to remove padding, margi

4条回答
  •  猫巷女王i
    2020-12-16 22:27

    Are you sure they're using the exact same font (including size)?

    Try adding box-sizing: border-box to the input.

    I've never had this issue myself, but I've only used it as a test somewhere in IE9...

提交回复
热议问题