图像上的链接无法使用HTML

图像上的链接无法使用HTML,html,Html,我有这个标志 <img src="images/logo.png" style="margin-top: 7px; margin-left: 10px;width: 80px;" alt=""> 现在,我使用普通的旧方法添加此图像的链接 <a href="google.com"> <img src="images/logo.png" style="margin-top: 7px; margin-left: 10px;width: 80px;" alt=""&g

我有这个标志

<img src="images/logo.png" style="margin-top: 7px; margin-left: 10px;width: 80px;" alt="">

现在,我使用普通的旧方法添加此图像的链接

<a href="google.com"> <img src="images/logo.png" style="margin-top: 7px; margin-left: 10px;width: 80px;" alt=""> </a>


然而,这似乎不起作用,图像上没有任何变化,甚至无法点击。我错过什么了吗?我应该换一种方式吗

为所有外部链接添加
http://

检查下面的代码段,您无法在
iframe
中打开
google
,因此我将URL更改为
stackoverflow


为所有外部链接添加
http://

检查下面的代码段,您无法在
iframe
中打开
google
,因此我将URL更改为
stackoverflow

试试这个:

<a href="http://google.com" id="myimage" onclick="document.location=this.id+'.html';return false;"> <img src="images/logo.png" alt="myimage"/> </a>

试试这个:

<a href="http://google.com" id="myimage" onclick="document.location=this.id+'.html';return false;"> <img src="images/logo.png" alt="myimage"/> </a>


您的链接已断开使用谷歌:是否显示图像?当鼠标悬停在图像上时,鼠标图标是否已更改?您的链接已断开使用谷歌:是否显示图像?当鼠标悬停在图像上时,鼠标图标是否已更改?选中上面的代码段选中上面的代码段