为什么不能在内嵌套
?我应该怎样修改呢? 去掉
和
标签会破坏我的设计,因为网站遵循客户提供的设计。 我有以下代码,在VS2008中运行良好,但是我收到了警告:
<div class="right_articles">
<p>
<table>
<tr>
<td>
<img alt="Img not found" src="images/ribbon.gif" style="width: 155px; height: 125px;" />
</td>
<td>
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label><br />
<asp:Label ID="Label2" runat="server" Text="Label"></asp:Label><br />
<asp:Label ID="Label3" runat="server" Text="Label"></asp:Label>
</td>
</tr>
</table>
</p>
<p> </p>
<p>
<table>
<tr>
<td>
<img alt="Img not found" src="images/medal.gif" style="width: 155px; height: 125px;" />
</td>
<td>
<asp:Label ID="Label4" runat="server" Text="Label"></asp:Label><br />
<asp:Label ID="Label5" runat="server" Text="Label"></asp:Label><br />
<asp:Label ID="Label6" runat="server" Text="Label"></asp:Label>
</td>
</tr>
</table>
</p>
</div>
警告
Warning 1 This end tag has no matching start tag.
E:\WebSite4\test.master 121
Warning 2 Validation (XHTML 1.0 Transitional):
Text is not allowed between the opening and closing tags for element html'.
E:\WebSite4\test.master 5
Warning 3 Validation (XHTML 1.0 Transitional):
Element 'form' is missing its closing tag.
E:\WebSite4\test.master 21
Warning 4 The class or CssClass value is not defined.
E:\WebSite4\test.master 33
Warning 5 File 'spacer.gif' was not found.
E:\WebSite4\test.master 116
Warning 7 Validation (XHTML 1.0 Transitional):
Element 'img' is missing required attribute 'alt'.
E:\WebSite4\test.master 116
Warning 8 Validation (XHTML 1.0 Transitional):
Element 'table' cannot be nested within element 'p'.
E:\WebSite4\test.master 78
Warning 9 Validation (XHTML 1.0 Transitional):
Element 'table' cannot be nested within element 'p'.
E:\WebSite4\test.master 93
<p>
标签内还可以使用什么? - Rohit Vipin Mathews