验证 (HTML 4.01): 在“table”元素的开始标记与结束标记之间不允许出现文本。

jiabinwu1 2008-12-03 01:35:41
这是table部分的代码

<table id="__01"border="0" cellpadding="0" cellspacing="0">

<tr><td width="70" align="center">用户名:</td>
<td align="left">
<asp:TextBox ID="userIdTextBox" Runat="server" Width="101px" MaxLength="10" TabIndex="1" />
<asp:RequiredFieldValidator id="userIdValidator" ControlToValidate="userIdTextBox" ErrorMessage="用户名不能为空" runat="server">*
</asp:RequiredFieldValidator>
</td>
</tr>
<tr><td width="70" align="center">密    码:</td>
<td align="left">
<asp:TextBox ID="passwordTextBox" Runat="server" TextMode ="password" Width="101px" MaxLength="20" TabIndex="2" />
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="passwordTextBox" ErrorMessage="密码不能为空">*
</asp:RequiredFieldValidator>
</td>
</tr>
<tr><td width="70" align="center">验证码:</td>
<td align="left">
<asp:TextBox ID="verifyTextBox" Runat="server" Width="101px" MaxLength="10" TabIndex="3" />
<asp:RequiredFieldValidator id="RequiredFieldValidator2" ControlToValidate="verifyTextBox" ErrorMessage="请输入验证码" runat="server">*
</asp:RequiredFieldValidator>
          
</td></tr>
<tr><td colspan="2" align="center">
                
<img id="ImageVerify" src="Verify.aspx" alt="看不清楚?换一个" onclick="this.src=this.src+'?temp='+(new Date().getTime().toString(36))" />
    <asp:ImageButton ID="ImgBtnLogin" runat="server" Height="27px"
ImageUrl="~/image/login.gif" Width="78px" />
</td>
</tr>
<tr><td colspan="2" align="center">
<asp:Label ID="Label1" runat="server" Height="18px" Width="144px"></asp:Label><a href="#" onclick="document.getElementById('ImageVerify').src='Verify.aspx?temp='+ (new Date().getTime().toString(36)); return false"><font style="font-size:small">看不清楚?换一个</font></a></td></tr>
 
</table>

谁能帮我改改。。我是个菜鸟。。。
...全文
667 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
cstanshuai 2011-11-21
  • 打赏
  • 举报
回复
return false"><font style="font-size:small">看不清楚?换一个</font></a></td></tr>
 
</table>

改为
return false"><font style="font-size:small">看不清楚?换一个</font></a></td></tr>

</table>
 

jiabinwu1 2008-12-03
  • 打赏
  • 举报
回复
少了结束标记吗?可是这里不是有了嘛?
<font style="font-size:small">看不清楚?换一个 </font> </a> </td> </tr>
 
</table> <-----
Deathsign 2008-12-03
  • 打赏
  • 举报
回复
不一定是这里错了啊
估计是少了结束标记
认真看看所有的HTML代码

111,131

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Creator Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧