jQuery 幻灯片在 IE9 中不起作用
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5686054/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
jQuery slide show not working in IE9
提问by Fida
I have tried to have the jQuery Slideshowin one of my site, but it is now not working in IE9. It is working fine in all IE Versions till IE8.
我曾尝试在我的网站之一中使用jQuery 幻灯片,但它现在无法在 IE9 中运行。它在 IE8 之前的所有 IE 版本中都可以正常工作。
Please help us to find out a way to make it work in IE9.
请帮助我们找到一种使其在 IE9 中工作的方法。
回答by Dexter
The first thing to do is upgrade to the latest version of jQuery- it looks like you're currently using jQuery v1.4, but IE9 support was only introduced in v1.5.1.
首先要做的是升级到最新版本的 jQuery- 看起来您目前使用的是 jQuery v1.4,但 IE9 支持仅在 v1.5.1 中引入。
Update: if the IE9 Developer Toolsdon't reveal any script errors, and the code is still not displaying properly for you, you can always force IE to render your website in IE8 mode. Add the following meta tag between the <head>
tags on every page which contains the slide show:
更新:如果IE9 开发人员工具没有显示任何脚本错误,并且代码仍然无法正确显示,您可以随时强制 IE 在 IE8 模式下呈现您的网站。<head>
在包含幻灯片的每个页面上的标记之间添加以下元标记:
<meta http-equiv="X-UA-Compatible" content="IE=8" >