属性herf不是元素'a'的有效属性

use*_*310 0 html asp.net

所有.

HREF不起作用.它甚至没有显示手指/指针.

我在href和目标下得到一条绿线,它说:

href =>属性herf不是元素'a'target的有效属性=>仅当href存在时才允许属性

怎么了?文本"Get Lat&Long"应该是一个超链接,但它似乎是一个文本!

我的代码

<td class="auto-style27">
    <asp:Label ID="lblBusWebAdd0" runat="server" Font-Bold="True" Font-Names="Arial" ForeColor="#666666" Text="Latitude"></asp:Label>
    &nbsp;
    <asp:TextBox ID="txtAddBusLat" runat="server" Width="158px"></asp:TextBox> <a herf="http://www.gps-coordinates.net/" target="_blank">Get Lat&Long</a>
</td>
Run Code Online (Sandbox Code Playgroud)

提前谢谢〜

Cob*_*ast 5

你在代码中写道

<a herf="
Run Code Online (Sandbox Code Playgroud)

但是,这是正确的:

<a href="
Run Code Online (Sandbox Code Playgroud)

拼写很重要.