Html IE 6表格行背景颜色?

Html IE 6表格行背景颜色?,html,css,internet-explorer-6,Html,Css,Internet Explorer 6,几乎所有浏览器都支持我的CSS,但是IE6似乎不想给我想要的结果 表格上有条纹,但由于IE6中的某些原因,它们在列和行之间出现白色间隙 任何帮助都很好!:) 在本例中没有css,但是您可以通过从style标记中添加额外的代码来轻松实现。它是多浏览器便携式的 <div align="center"><table id="myBoostTable" width="760" height="96" cellpadding="5" border="1" cellspacing="0"

几乎所有浏览器都支持我的CSS,但是IE6似乎不想给我想要的结果

表格上有条纹,但由于IE6中的某些原因,它们在列和行之间出现白色间隙


任何帮助都很好!:)

在本例中没有css,但是您可以通过从style标记中添加额外的代码来轻松实现。它是多浏览器便携式的

<div align="center"><table id="myBoostTable" width="760" height="96" cellpadding="5" border="1" cellspacing="0" style="border-color:#000000;font-size:11px; border-collapse:collapse"><tr id="header"> <th align = "center" style="font-size:14px;font-family:Times New Roman;font-weight:700;font-style:normal;border-top-color:#000000;border-bottom-color:#000000;border-top: 1px solid #000000;border-bottom: 1px solid #000000;border-left-color:#000000;border-left: 1px solid #000000;border-right-color:#808080;border-right: 1px solid #808080 " width="380"height="24" bgcolor="#EDEDF1"><font color = "#000000">This is my title col 1</font></th><th align = "center" style="font-size:14px;font-family:Times New Roman;font-weight:700;font-style:normal;border-top-color:#000000;border-bottom-color:#000000;border-top: 1px solid #000000;border-bottom: 1px solid #000000;border-left-color:#808080;border-left: 1px solid #808080;border-right-color:#000000;border-right: 1px solid #000000 " width="380"height="24" bgcolor="#EDEDF1"><font color = "#000000">This is my title col 2</font></th></tr><tr  > <td align = "left" style="font-size:12px;font-family:Times New Roman;font-weight:400;font-style:normal;border-top-color:#000000;border-top: 1px solid #000000;border-bottom-color:#D3D3D3;border-bottom: 1px solid #D3D3D3;border-left-color:#000000;border-left: 1px solid #000000;border-right-color:#808080;border-right: 1px solid #808080 " width="380" height="24" bgcolor="#FFFFFF"><font color = "#000000">content 1-1</font></td><td align = "left" style="font-size:12px;font-family:Times New Roman;font-weight:400;font-style:normal;border-top-color:#000000;border-top: 1px solid #000000;border-bottom-color:#D3D3D3;border-bottom: 1px solid #D3D3D3;border-left-color:#808080;border-left: 1px solid #808080;border-right-color:#000000;border-right: 1px solid #000000 " width="380" height="24" bgcolor="#F3EFFF"><font color = "#000000">content 1-2</font></td></tr><tr  > <td align = "left" style="font-size:12px;font-family:Times New Roman;font-weight:400;font-style:normal;border-top-color:#D3D3D3;border-top: 1px solid #D3D3D3;border-bottom-color:#D3D3D3;border-bottom: 1px solid #D3D3D3;border-left-color:#000000;border-left: 1px solid #000000;border-right-color:#808080;border-right: 1px solid #808080 " width="380" height="24" bgcolor="#FAFAFF"><font color = "#000000">content 2-1</font></td><td align = "left" style="font-size:12px;font-family:Times New Roman;font-weight:400;font-style:normal;border-top-color:#D3D3D3;border-top: 1px solid #D3D3D3;border-bottom-color:#D3D3D3;border-bottom: 1px solid #D3D3D3;border-left-color:#808080;border-left: 1px solid #808080;border-right-color:#000000;border-right: 1px solid #000000 " width="380" height="24" bgcolor="#EEEAFF"><font color = "#000000">content 2-2</font></td></tr><tr  > <td align = "left" style="font-size:12px;font-family:Times New Roman;font-weight:400;font-style:normal;border-top-color:#D3D3D3;border-top: 1px solid #D3D3D3;border-bottom-color:#000000;border-bottom: 1px solid #000000;border-left-color:#000000;border-left: 1px solid #000000;border-right-color:#808080;border-right: 1px solid #808080 " width="380" height="24" bgcolor="#FFFFFF"><font color = "#000000">content 3-1</font></td><td align = "left" style="font-size:12px;font-family:Times New Roman;font-weight:400;font-style:normal;border-top-color:#D3D3D3;border-top: 1px solid #D3D3D3;border-bottom-color:#000000;border-bottom: 1px solid #000000;border-left-color:#808080;border-left: 1px solid #808080;border-right-color:#000000;border-right: 1px solid #000000 " width="380" height="24" bgcolor="#F3EFFF"><font color = "#000000">content 3-2</font></td></tr></table></div>
这是我的标题栏1这是我的标题栏2内容1-1内容1-2内容2-1内容2-2内容3-1内容3-2

如果列和行之间的间距大于单元格填充和单元格间距中的值。将这两个值都设置为0将消除差距。

与其尝试使其在IE6中看起来完全相同,不如接受站点工作正常、看起来足够,然后继续前进。IE6的麻烦比它的价值还多(特别是谷歌很快就停止了它),而且你的网站(谢天谢地)不必在每个浏览器中看起来都一样/soapboxWell,我追求完美,我只对BSD OS浏览器有问题,不用担心,大多数浏览器仍处于测试阶段。:)我认为你应该在你的网站上安装类似的东西,看看有多少人在使用IE6。对于一个高中网站,我预计在这个时代,这个数字将低于2%。不过,如果你非常确定你想在IE6支持上投入时间,我会看看这个。(再说一遍)你是个完美主义者很好,但是。。。