2017-03-16 1 views
0

Ich habe dieses Logo-Link auf ein Bild, nicht HTML arbeiten

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

jetzt einen Link pn dieses Bild füge ich die gute alte Methode verwenden

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

jedoch nicht zu funktionieren scheint Es passiert nichts auf dem Bild und es ist nicht einmal anklickbar. Fehle ich etwas? Sollte ich es anders versuchen?

+0

Ihr Link – Monicka

+0

gebrochen Verwenden Sie Google: https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_link_image – Monicka

+0

Wird das Bild angezeigt? Wenn Sie den Mauszeiger über das Bild bewegen, wird das Maussymbol geändert? – shaochuancs

Antwort

1

Fügen Sie http:// für alle externen Verbindungen hinzu.

Prüfung unter Schnipsel, können Sie nicht google in iframe öffnen ich die URL zu stackoverflow

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

+0

ohne Erfolg. Ich habe versucht, dass –

+0

oben Schnipsel überprüfen – aje

1

try this geändert:

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