【发布时间】:2016-04-11 21:22:29
【问题描述】:
我有以下html代码:
<div class="main">
<div class="container">
<button class="btn btn-default">
@Html.ActionLink("Explore", "Explore")
</button>
</div> </div>
按钮样式如下:
.main .btn{
margin-left:600px;
-moz-transition: box-shadow 0.5s;
-o-transition: box-shadow 0.5s;
-webkit-transition: box-shadow 0.5s;
transition: box-shadow 0.5s;
background: transparent;
border:1px solid #7b278e;
}
.main .btn a{
color:#7b278e;
text-decoration:none;
}
.main .btn:hover{
box-shadow:3px 3px 6px #7b278e;
font-weight:600;
border:1px solid #7b278e;
}
链接在 chrome 中可以正常工作,但在 IE 中不行。我对浏览器兼容性不太了解。请帮忙!
该链接在 IE 源代码中显示为带有“探索”链接的按钮。 Explore 但是点击它不会进入“探索”视图。什么都没有发生。
【问题讨论】:
-
当你说“不工作”时,锚是放在页面上的吗?还是没有链接到正确的页面?
-
什么版本的 IE?
-
@epascarello: M 使用 IE11
-
@LewisSpears 链接确实出现在页面上。单击时它不会重定向到“探索”视图。
标签: html css twitter-bootstrap asp.net-mvc-3 internet-explorer