在HTML中,表格的格式混乱了

时间:2011-06-30 09:47:54

标签: html html-table formatting

要查看表格现在的样子,请转到http://www.atsbusinessandgames.co.cc/Downloads/External-Video-Downloads/

如果你看起来你会注意到某些部分完全缺失或错位,即使它们在代码中是明确定义的。以下是该表的代码:

<table border="1" cellpadding="8">
<tr>
<th>Movie Name</th>
<th>Code</th>
<th>Link</th>
<th>File Size</th>
<th>Genre</th>
<th>Addition Info</th>
<th>Plot Summery</th>
</tr>

<tr>
<td>Cars</td> <!--movie name -->
<td>V,G</td> <!-- Code -- >
<td>http://www.watchthisfree.com/movies/2006/cars/watch/</td> <!-- link -- >
<td>265.3mb</td> <!-- File Size -->
<td>Coming Soon</td> <!--Genre -->
<td>Once the page loads click play video then click play again. The RealPlayer downloader should come up. Download the video using this.
Do not use or click any links on the page. The download video link and the download VLC Media Player are both known virus links.
I don't recommend clicking anything on this page.</td> <!--Addition Info-->
<td>Coming Soon</td> <!--Plot Summery -->
</tr>

<tr>
<td>Fly Away Home</td> <!--movie name -->
<td>None</td> <!-- Code -- >
<td>Coming Soon</td> <!-- link -- >
<td>Coming Soon</td> <!-- File Size -->
<td>Coming Soon</td> <!--Genre -->
<td>Coming Soon</td> <!--Addition Info-->
<td>Coming Soon</td> <!--Plot Summery -->
</tr>

<tr>
<td>The Social Network</td> <!--movie name -->
<td>V,G</td> <!-- Code -- >
<td>http://www.watchthisfree.com/movies/2010/the-social-network/watch/</td> <!-- link -- >
<td>742mb</td> <!-- File Size -->
<td>Coming Soon</td>  <!--Genre -->
<td>Once the page loads click play video then click play again. The RealPlayer downloader should come up. Download the video using this.
Do not use or click any links on the page. The download video link and the download VLC Media Player are both known virus links.
I don't recommend clicking anything on this page.</td>  <!--Addition Info-->
<td>Coming Soon</td>  <!--Plot Summery -->
</tr>

</table>

</center>

任何帮助都会受到高度赞赏,因为我不知道出了什么问题。

4 个答案:

答案 0 :(得分:3)

在几个地方,您有<!-- Comment -- >,但评论未终止,因为您的--未附加到>。查看您的帖子,看看语法突出显示哪些部分使注释部分变灰,以查看要更正的区域。

答案 1 :(得分:1)

删除HTML评论标记末尾之间的空格:

-- >

应该是

-->

答案 2 :(得分:1)

在此处进行测试后,很明显由于评论结束标记无效而导致表格单元格丢失。

您正在使用:

<td>Coming Soon</td> <!-- link -- >

在 - 和&gt;

之间的末尾有太多空格

答案 3 :(得分:1)

删除你的评论。它不是正确的格式。你没有正确地发表评论。
请删除 - 和&gt;

之间的空格