我很难让span标签在表格中正常工作。看起来好像整个span标签被忽略,这是Firefox中表格标签之间的任何地方定义的,但是在IE中,它正确显示。火狐浏览器和IE浏览器 - Firefox处理<span>里面的表格(html和css)
也许我错过了一些东西,但我创建了一个小的示例CSS和HTML文件,它们在Firefox和IE中的显示方式不同。希望有人能告诉我为什么这样做,或者我可以重新排列html来解决Firefox中的问题。
--- --- main.css的
.class1 A:link {color:#960033; text-decoration: none}
.class1 A:visited {color:#960033; text-decoration: none}
.class1 A:hover {color:#0000FF; font-weight: bold; text-decoration: none}
.class1 A:active {color:#0000FF; font-weight: bold; text-decoration: none}
.class2 A:link {color:#960033; text-decoration: none}
.class2 A:visited {color:#960033; text-decoration: none}
.class2 A:hover {color:#0000FF; text-decoration: none}
.class2 A:active {color:#0000FF; text-decoration: none}
--- TEST.HTM ---
<HTML>
<HEAD>
<title>Title Page</title>
<style type="text/css">@import url("/css/main.css");</style>
</HEAD>
<span class="class1">
<BODY>
<table><tr><td>
---Insert Hyperlink---<br>
</td></tr>
</span><span class="class2">
<tr><td>
---Insert Hyperlink---<br>
</td></tr></table>
</span>
</BODY>
</HTML>
http://validator.w3.org/ – Quentin 2010-03-23 16:23:28
天哪,这么乱......这将是很难写这个标记坏。我特别注意在
(!)之前开始的,并在之前结束! – Robusto 2010-03-23 16:29:34