2013-02-18 43 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

相关问题