【问题标题】:Internet explore button link not working互联网探索按钮链接不起作用
【发布时间】:2013-11-24 21:17:36
【问题描述】:

我正在尝试使用按钮作为链接向后导航到父目录中的文件。

<a href="../index.php"><input type="button" value="Back"></a>

由于某些原因,该代码在 Chrome、Firefox、Safari、Opera 等所有其他浏览器上都可以运行,但在 InternetExplorer 中却无法运行。 那么有人知道为什么或有一些解决方法吗?

【问题讨论】:

    标签: html internet-explorer internet-explorer-8


    【解决方案1】:

    那么有谁知道为什么或者有一些解决方法吗?

    您可以尝试这样的解决方法:

    <input type="button" value="google.com" onClick="javascript:location.href = 'http://google.com';" />
    

    还可以查看&lt;button&gt; not working in IE8

    【讨论】:

    • 感谢您的回复,但我决定使用带有一些 css 样式的常规链接。
    • @Adrao:- 这个怎么样:&lt;a href="../index.php" class="button"&gt;Learn more&lt;/a&gt; ?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2023-03-28
    • 1970-01-01
    • 2017-05-23
    • 2021-12-17
    • 2019-04-23
    • 1970-01-01
    • 2011-08-31
    相关资源
    最近更新 更多