在IE中无法点击锚点

时间:2016-07-06 13:22:22

标签: html internet-explorer

我有一个按钮/链接,在IE中无法点击,但在Microsoft Edge和其他现代浏览器中。

无法看到代码有什么问题。有什么想法吗?

<div class="bttn">
<a href="2.html">Next page</a>
</div>

.bttn{ margin:50px 0px 0px 50px }
.bttn a{ padding:10px 30px; }   
.red-btn{ padding:10px 30px; background-color:#C10931; color:#fff;  }

1 个答案:

答案 0 :(得分:0)

在你的head标签中添加以下代码。(假设你有一个外部的css作弊)。

<!--[if IE 8]>
<style type="text/css">
/* css for IE 8 */
</style>
<![endif]-->

 <!--[if lt IE 8]>
<link href="ie7.css" rel="stylesheet" type="text/css" />

 <![endif]-->