【发布时间】:2010-11-24 13:30:28
【问题描述】:
<html>
<head>
<style type="text/css">
#theInput
{
border:solid 1px gray;
height:20px;
}
#theButton
{
border:solid 1px gray;
height:20px;
}
</style>
</head>
<body>
<input type="text" id="theInput"><input type="button" value=" Go " id="theButton">
<body>
</html>
在 Firefox 中渲染上一个时,按钮比文本字段高约 1 像素。如何解决这个问题? 在没有指定文档类型的情况下,高度在 chrome 中是完美的,甚至在 IE6 中也是完美的,但在 Firefox 中却不是?
【问题讨论】: