转:a标签中如果有button, 那么在IE下就不能跳转到herf的链接

a标签中如果有button, 那么在IE下就不能跳转到herf的链接

a标签中如果有button, 那么在IE下就不能跳转到herf的链接。而火狐和google中可以

如下:此种在IE中不可以。这边的class中的属性只用于按钮样式。
[a href="jsp/manage/manage-context.jsp"][input type="button" class="searchbut" value="返 回"][/a]

而通过这样在IE中可行。但在火狐和google中则不可以
[input type="button" onclick="window.location.href('/jsp/manage/manage-context.jsp')" class="searchbut" value="返 回"]

下面这种则在IE,火狐,google中都可以
[input type="button" onclick="window.location.href='/jsp/manage/manage-context.jsp'" class="searchbut" value="返 回"]

 

转自:http://txjia.com/tip/?2013-AJ-GW3X

posted @ 2015-06-12 10:55  lighttheripper  阅读(133)  评论(0编辑  收藏  举报