我想将文本输入放在与提交按钮相同的行和高度上。请参阅JSFiddle。在 Chrome 中,这完美无缺,但在 Firefox 中,提交按钮低于文本输入。我该如何解决。HTML
<div id="whois-lookup">
<form id="whois-form">
<input type="text" placeholder="search" id="name-check" />
<input type="submit" name="query" />
</form>
</div>
和CSS
#whois-lookup input[type=text]
{
margin: 0;
border: 1px solid #aaa;
border-right: 0px;
font-size: 1.0em;
line-height: 25px;
height: 25px;
padding: 0 10px;
width: 188px;
border-top-left-radius: 3px;
border-bottom-left-radius: 3px;
position: relative;
top: -2px;
}
#whois-lookup input[type=text]:focus
{
outline: none;
}
#whois-lookup input[type=submit]
{
margin-left: -4px;
border: 1px solid #aaa;
border-left: 0px;
font-size: 1.0em;
line-height: 27px;
height: 27px;
border-top-right-radius: 3px;
border-bottom-right-radius: 3px;
color: #666;
cursor: pointer;
background-color: #fff;
}