开发者

z-index problem in IE

开发者 https://www.devze.com 2023-03-19 15:58 出处:网络
I have a map with points on it which the user hovers over to reveal further information. The problem I have is hard to explain because it only seems to be a problem when the user views开发者_C百科 th

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

The problem I have is hard to explain because it only seems to be a problem when the user views开发者_C百科 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/

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.

EDIT:

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


When hosted from your server, the page is rendering in a browser mode other than IE9 Standards Mode.

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

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">
0

精彩评论

暂无评论...
验证码 换一张
取 消