2013-06-24 55 views
-3

我想鏈接圖像在我的頁腳,但每當我鏈接一個圖像,鏈接傳播到頁腳的其餘部件。試圖鏈接一個圖像,但它保持鏈接所有其他圖像

我該如何解決這個問題?

My site

這裏是我用來使圖像可鏈接的代碼...

<a href="http://www.pastorsdigitalbooks.com" 
target="_blank"><img src="http://nzbound.kiwi.nz/website/wp-content/uploads/2013/05/logo-500x500.png";width="165"; height="165";</a> 
+4

你能告訴我們你用來建立鏈接的代碼嗎?最好是發佈代碼,而不是鏈接到它:http://meta.stackexchange.com/questions/125997/something-in-my-web-site-or-project-doesnt-work-can-i-just -paste-a-link-to-it – cfs

+1

請發佈您在頁腳中添加的內容,以便我們看到問題所在。 – designtocode

+1

您已經添加了鏈接**五次**,並將正確圖片'logo-500x500.png'中的所有內容都放到了JavaScript裏面。我猜你忘了關閉一個''標籤或不小心添加了鏈接。請發佈您用來添加鏈接的代碼。 – Joe

回答

2

您對整個頁腳DIVlink所以很明顯,它會顯示在整體上頁腳區域。
代碼:

<a target="_blank" href="http://www.pastorsdigitalbooks.com"> 
<div id="footer-widget2"> //..... and so on 

你的代碼應該是:

<div id="footer-widget2"> 
<div class="textwidget"> 
<p align="center"> 
<a href="">Sent from: Bible Baptist Church</a> // ... adn so on 

注意:您將在您的整個頁腳插件的鏈接這就是爲什麼它是對整個DIV重疊。嘗試格式化您的代碼。

+0

那麼,如何將圖像鏈接到整個頁腳? – user2517505

+0

通過這樣做:'' –

+0

好吧,工作...謝謝! – user2517505