我有浏览器之间的CSS差异问题。我有一个简单的输入文本框提交按钮。应该安排。与webkit(safari/webkit)一切看起来不错,但Firefox不做。有没有人有一个想法什么是错的?CSS风格火狐/ Safari浏览器/ Chrome
我已经写了一个小测试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>
IE和Opera怎么样?跳过这个测试不是一个好主意,特别是对于IE。 – Manius 2010-10-16 22:38:13