IE6.0 / Firefox浏览器问题,两个浏览器中的表边框不一样

时间:2011-11-29 07:14:26

标签: html internet-explorer-6

  

可能重复:
  html table border is not consistent in IE6.0 and firefox

html表中的

边框在IE和Mozilla中看起来有所不同。在 mozilla 中,所有方面的边界相同,但在IE6.0中它不相同。 边框底部的长度更长。

Firefox和IE的图片分别为:

enter image description here enter image description here

<table>
 <tr>
  <td style="width:90%;border:2px solid #3399FF;">this is demo</td>
 </tr>
</table> 

我无法弄清楚这里出了什么问题。请帮忙。感谢

2 个答案:

答案 0 :(得分:1)

我有IE6,我尝试了你的代码,它看起来与firefox完全相同。

很明显,那里有一些其他代码导致问题。没有看到代码,我无法帮助你。

以下是IE6中的图像,其中包含一个带有IE版本的windw。

Border in IE6

答案 1 :(得分:0)

它的工作正常,可能是其他一些css覆盖你的内联css

您可以使用:

<td style="width:90%;border:2px solid #3399FF; !important">this is demo</td>