PHP群:95885625 Hbuilder+MUI群:81989597 站长QQ:634381967
    您现在的位置: 首页 > 开发编程 > JavaScript教程 > 正文

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

    作者:admin来源:网络浏览:时间:2020-09-30 00:07:50我要评论
    导读:a标签中如果有button, 那么在IE下就不能跳转到herf的链接a标签中如果有button, 那么在IE下就不能跳转到herf的链接。而火狐和google中可以...
    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="返 回"]
    转载请注明(B5教程网)原文链接:https://b5.mxunkeji.com/content-69-2714-1.html
    相关热词搜索: