0

我试图摆脱单元格之间的边界空间。我认为单元格间距可以解决问题,但仍然有一个细长的白色边框。谁能给我一些建议...

<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>
4

1 回答 1

0
cellspacing=0;

没有CSS。这曾经是一个 HTML 属性:

<table cellspacing="0" style="width:400px">

另请参阅相关(重复?)问题:

于 2012-08-05T21:30:21.063 回答