获取按钮元素以与Internet Explorer 11一起使用 [英] Getting buttons element to work with Internet Explorer 11

查看:272
本文介绍了获取按钮元素以与Internet Explorer 11一起使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下测试代码适用于除Internet Explorer 11以外的所有浏览器:

I have the following test code working for all the browsers except for Internet Explorer 11:

<button type="button" id="index_next" class="button_next" onclick="alert(this.id);" >Next</button>

我已经在此处

请协助.我该如何在IE11上使用它.

Please assist. How do I get this working for IE11.

谢谢

推荐答案

谢谢达拉斯.此后,我已经使用

Thank you Dallas. I have since resolved using

<meta http-equiv="X-UA-Compatible" content="IE=edge" />

这已经创建了与其他浏览器的兼容性,但是在使用IE11时,在其他功能(例如websocket)中出现了奇怪的行为.非常感谢你的回复.

This has created a level of compatibility with other browsers,but have experienced odd behaviours in other features like websockets when using IE11. Thank you so much for your response.

这篇关于获取按钮元素以与Internet Explorer 11一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆