设置为0时,HTML表格边框不会消失

时间:2013-06-29 16:43:37

标签: html html-table border

我遇到的问题是在设计要发送给用户的电子邮件时,HTML表的边框即使设置为0也不会消失,因此在菜单为蓝色的区域留下可怕的白线颜色,下面是我的HTML代码!

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<table width="889" border="0" >
  <tr>
    <td>
        <table width="882" border="0" bordercolor="#0099FF">
          <tr>
            <td colspan="4" bgcolor="#0099FF">&nbsp;</td>
            </tr>
          <tr bgcolor="#0099FF">
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td bgcolor="#0099FF">&nbsp;</td>
            <td colspan="2" rowspan="2">content</td>
            <td bgcolor="#0099FF">&nbsp;</td>
          </tr>
          <tr bgcolor="#CCCCCC">
            <td>&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
        </table>
    </td>
  </tr>
</table>
</body>
</html>

2 个答案:

答案 0 :(得分:2)

将cellspacing =“0”添加到第二个表格中:

<table width="882" border="0" bordercolor="#0099FF" cellspacing="0">

答案 1 :(得分:1)

可能 cellspacing =“0”修复这些行吗?