jQuery 灯箱在 IE 中不起作用
看看这个网站,http://www.uniquegeeks.co .uk/product/test-LED%20Lights-0001#,请找出为什么它在除 IE 之外的所有其他浏览器中都能完美运行。
问题在于,在 IE 中,网站位于左侧,而其他所有浏览器都应该在中间。
问题当您在非 IE 浏览器中单击较大的图像时,它就是一个工作灯箱。在 IE 中它不起作用,只显示下面的大图片。
Take a look at this site, http://www.uniquegeeks.co.uk/product/test-LED%20Lights-0001#, and please work out why it works perfectly in every other browser but IE.
The problem is that in IE the site is off to the left and every other browser it's as it should be, in the middle.
When you click the larger image in a non IE browser, it's a working lightbox. In IE it doesn't work and just shows the large picture underneath.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
顺便说一句:
不是有效的 HTML。
As an aside:
is not valid HTML.
这是因为它在怪异模式下运行(如果您在 IE 中按 F12,您会看到“文档模式”默认为怪异模式)。
设置一个文档类型,例如:
确保它默认为 IE9(或它实际是什么版本)
It's due to it operating in quirks mode (if you press F12 in IE you'll see the 'document mode' defaults to quirks).
Set a doctype like:
To ensure it defaults to IE9 (or whatever version it actually is)
我认为这里的主要问题是您的
由于某种原因被带到了 html 的顶部。只有当我查看源代码、通过调试器工具查看 html 时,我才会看到这一点,即 div 正确放置在 body 标记之后。
I think the main problem here is that your
<div id="wrapper">
is being carried to the top of your html for some reason. I only see this if I view source, if I view html through debugger tools that div is placed correctly after the body tag.