【发布时间】:2015-07-24 16:52:31
【问题描述】:
我正在我的页面中使用 href 标记创建一个按钮,该按钮在 chrome 中运行良好。但它在 Internet Explorer 中根本不起作用,按钮的代码是
<td class='swMntTopMenu' style="text-align:right">
<button style="background-color:rgb(255,213,32)">
<a href ='list.php' style="text-decoration:none !important;">
<div class="link"> Back </div>
</a>
</td>
并且使用的样式的代码是
.swMntTopMenu
{
background-color: #E2E4E5;
/* float: center;*/
width: 5%;
margin-top: 2px;
padding-bottom: 6px;
border-bottom: solid 1px #d0ccc9;
}
和
.link
{
color: #0E0202;
text-decoration: none;
background-color: none;
}
谁能帮我解决这个问题?
【问题讨论】:
-
哪个版本的IE?
-
不工作是什么意思?
-
@DeepKakkar 我正在使用 IE 11
-
您没有关闭您的
button元素。此外,button中不能有a。 -
@Vucko 所以我可以用什么来重定向到另一个页面而不是锚点
标签: html css cross-browser href internet-explorer-11