链接在Chrome中工作但在IE中没有?

时间:2013-02-18 02:44:31

标签: php html internet-explorer google-chrome href

所以我刚刚建立了一个新页面,链接可以在我本地计算机上的Chrome和IE 10中运行,但是当我将网站上传到我的服务器时,这些链接只能用于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>

1 个答案:

答案 0 :(得分:1)

<button>代码中无法<a>。你需要做什么才能需要一个按钮元素?

更新:

有关详细信息和可能的解决方法,请尝试:

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

但我会说你自己的CSS按钮样式会更好。如果时间不够,请尝试http://www.cssbuttongenerator.com/