我试图摆脱细胞之间的边界空间。我认为cellspacing可以解决问题,但仍然有一个纤细的白色边框。谁能给我一些建议......
<body>
<center><table style="cellspacing:0; width:400px; border:none;">
<?
echo "<tr><td> Team </td><td>Correct Picks</td><td>Points</td></tr>";
while($row = mysql_fetch_array($memberslist)) {
if ($row['User_ID'] == $id) {
echo "<tr bgcolor=\"gray\"><td>" . $row['User_ID'] . "</td><td><b>" . $row['Correct_Picks'] . " </b> /" . $maxcorrectpicks . "</td><td>" . $row['Points'] . "</td></tr>";
} else {
echo "<tr><td>" . $row['User_ID'] . "</td><td><b>" . $row['Correct_Picks'] . " </b> /" . $maxcorrectpicks . "</td><td>" . $row['Points'] . "</td></tr>";
}
}
?>
</table></center>
</body>
答案 0 :(得分:0)
cellspacing=0;
不是CSS。那曾经是一个HTML属性:
<table cellspacing="0" style="width:400px">
还可以查看相关的(重复?)问题: