我在不同浏览器之间遇到了CSS差异的问题。我有一个简单的输入文本框和一个提交按钮,它们应该排列在一起。在Webkit(Safari/Webkit)中一切看起来都很好,但是Firefox却不能正常显示。有人知道出了什么问题吗?
我写了一个小测试HTML页面:
<html>
<head>
<style type="text/css">
#input {
background: none repeat scroll 0 0 white;
border-color: #DCDCDC;
border-style: solid;
border-width: 1px 0 1px 1px;
font: 13px "Lucida Grande",Arial,Sans-serif;
margin: 0;
padding: 5px 5px 5px 15px;
width: 220px;
outline-width: 0;
height: 30px;
}
#submit {
background: none repeat scroll 0 0 white;
border: 1px solid #DCDCDC;
font: 13px "Lucida Grande",Arial,Sans-serif;
margin: 0;
outline-width: 0;
height: 30px;
padding: 5px 10px;
}
</style>
</head>
<body>
<input id="input" type="text" value="" /><input id="submit" type="button" value="Add" />
</body>
</html>