IE中的z-index问题 [英] z-index problem in IE

查看:93
本文介绍了IE中的z-index问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一张地图,用户将鼠标悬停在其上以显示更多信息。

I have a map with points on it which the user hovers over to reveal further information.

我遇到的问题很难解释,因为它只是当用户在IE中查看页面时以及在托管在我的服务器上时出现问题。以下jsfiddle页面上的完全相同的代码可以正常工作。

The problem I have is hard to explain because it only seems to be a problem when the user views the page in IE and when it is hosted on my server. Exactly the same code on the jsfiddle page below works fine.

http ://jsfiddle.net/FbYEW/

当在我的服务器上托管时,弹出窗口上的z索引不起作用,弹出窗口会显示在其他地方下面。

What happens when hosted on my server is the z-indexes on the popups do not work and the popups appear underneath the other spots. Can anyone think why this might be... it's very frustrating not to be able to replicate the problem for anyone to see.

编辑:

我在IE8上以兼容模式查看在我的服务器上托管的页面。如果你看看IE的jsfiddle页面同样的问题发生 - 所以没有什么与我的服务器一起做... oops

I was viewing the page hosted on my server in compatibility mode on IE8. If you look at the jsfiddle page in IE the same problem occurs - so nothing to do with my server after all... oops

推荐答案

p>

例如,如果在IE7模式或怪异模式下呈现, z-index 可能会出现问题。

For example, if it's rendering in IE7 Mode or Quirks Mode, z-index problems are expected.

点击F12打开开发工具,看看它是什么。

Hit F12 to bring up the Developer Tools, and see which it is.

发生的原因有很多不同的可能性,请参阅:

There are many different possibilities as to why this is happening, see:

http://hsivonen.iki.fi/doctype/#ie8modes

如果你只是想解决它,而不解决问题来自哪里:

If you just want to fix it without working out where the problem is coming from:

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

这篇关于IE中的z-index问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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