刚出现一个奇怪的问题:
代码
<div style="margin:20px; text-align:center;">
<a href="/Deals/Add"><button id="addDeal">Add New Deal</button></a>
</div>
不再适用于IE,但仍在使用Firefox,Chrome,Safari。 有任何想法吗?提前谢谢!
答案 0 :(得分:2)
为什么不呢:
<a href="/Deals/Add">Add New Deal</a>
并使用CSS设置样式以便按照您的喜好显示?
答案 1 :(得分:0)
您应该将type="button"
添加到button
,the default type
is submit
。