Could someone take a look a the page generated by the following code, and tell me why the space between trs is not the same (Chrome > IE > Firefox) ? And how to resolve it (Already tried CSS Reset) ?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Test</title>
</head>
<body>
<table cellspacing='0' cellpadding='0'>
<tr>
<td><input type='text' /></td>
</tr>
<tr>
<td><input type='text' /></td>
</tr>
</table>
</body>开发者_StackOverflow社区;
</html>
Form elements are rendered differently by different browsers — it could be that, rather than the <table>
code, that’s causing the difference.
精彩评论