Firefox/Safari setting height as [specified height - padding - border] for input[type=button]
问题 When I use the following CSS: input[type=button] { background-color: white; border: 1px solid black; font-size: 15px; height: 20px; padding: 7px; } with this HTML: <input type="button" value="Foo" /> I expect to see this, so the total height becomes 36px : 1px border 7px padding 20px content (with 15px text) 7px padding 1px border But instead both Firefox 3.6 and Safari 4 show this: (Haven't tested in other browsers) Screenshot http://labs.spiqr.nl/upload/files