0
4

3 回答 3

1

Your A tag is being created before the td. This is invalid HTML and will cause unexpected behaviour.

<a href="../homepage.aspx">
    <td id="myHeader_td0_a" class="Tab_White" width="61" align="center" valign="middle">Home</td>
</a>

Needs to be

<td id="myHeader_td0_a" class="Tab_White" width="61" align="center" valign="middle">
     <a href="../homepage.aspx">Home</a>
</td>

Whatever code is generating this needs to output the HTML correctly.

于 2012-05-17T18:57:10.220 回答
1

尝试这个

<td id="myHeader_td1_a" class="Tab_Blue" width="61" align="center" valign="middle" lock="true"> 
     <a href="../listing/summarytreemain.aspx">Plan</a>
</td>

假设这实际上是在一个表中。

于 2012-05-17T18:16:04.470 回答
0

那是因为您的 html 不正确,atd只能在表格中。这就是为什么您看到不一致的原因。

删除表格单元格并简单地使用这个

<a href="../listing/summarytreemain.aspx">
<span id="myHeader_td1_a" class="Tab_Blue" width="61" align="center" valign="middle" lock="true">Plan</span>
</a>
于 2012-05-17T18:13:39.453 回答