div层上加联接为什么没有用处?

来源:百度知道 编辑:UC知道 时间:2024/06/07 06:17:41
<a href="Article.asp?ID=<%=J_Rs("j_id")%>" title="<%=J_Rs("j_title")%>" class="gray"><div style="margin-top:10px; margin-bottom:10px;" class="gray"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="75%" align="left" style="padding-left:20px;" scope="col"><%=J_Rs("j_title")%></td>
<td width="25%" align="center" scope="col"><%=J_Rs("j_appdate")%></td>
</tr>
</table>
</div></a>

div层上加联接为什么没有用处?
呵呵,你说的我也实验过,还是不行,哈哈

<div style="margin-top:10px; margin-bottom:10px;" class="gray">
<a href="Article.asp?ID=<%=J_Rs("j_id")%>" title="<%=J_Rs("j_title")%>" class="gray">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="75%" align="left" style="padding-left:20px;"

scope="col"><%=J_Rs("j_title")%></td>
<td width="25%" align="center" scope="col">
<%=J_Rs("j_appdate")%>
</td>
</tr>
</table>
</a>
</div>
把连接的代码加到div里面你在试试!你加在外面当让不行了