2013-02-18 41 views
0

因此,我剛建立了一個新頁面,鏈接在我的本地機器上使用Chrome和IE 10,但是當我將該站點上載到我的服務器時,這些鏈接只能在Chrome中運行? IE的行爲像沒有什麼?鏈接在Chrome中但不在IE中?

這是背後的代碼,如果你想自己嘗試,這裏是鏈接。我還沒有嘗試Firefox。我擔心那會做什麼。

http://www.AnthonyRussell.info

提前感謝!

<hr> 
    <a href="index.html"><button style="width:180px; height:40px" >Home</button></a> 
    <a href="bio.html"><button style="width:180px; height:40px">Biography</button></a> 
    <a href="projects.html"><button style="width:180px; height:40px">Projects</button></a> 
    <a href="resume.html"><button style="width:180px; height:40px">Abv Resume</button></a> 
    <a href="goals.html"><button style="width:180px; height:40px">Goals</button></a> 
    <a href="contact.html"><button style="width:180px; height:40px">Contact</button></a> 
    <hr> 
+0

適合我在IE – 2013-02-18 02:48:33

+0

難道這是我的本地機器,然後與IE瀏覽器的問題? – 2013-02-18 02:49:43

+0

這可能是IE10的問題嗎?那是你用的嗎? – 2013-02-18 02:55:42

回答

1

你不能有一個<button><a>標籤內。你想要做什麼來需要一個按鈕元素?

更新:

欲瞭解更多信息和可能的解決方法試試:

Button inside of anchor link works in Firefox but not in Internet Explorer?

但我要說的造型自己的CSS按鈕會更好。如果時間不夠,請嘗試http://www.cssbuttongenerator.com/

+0

我只是想不同的外觀到我的網站,不想使自己的按鈕,所以我把他們當作導航鏈接笑 – 2013-02-18 02:54:23

相關問題