绝对位置与IE的Z索引 [英] z-index with position absolute vs. IE

查看:99
本文介绍了绝对位置与IE的Z索引的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以帮我解决我菜单上出现的这个问题吗? 该问题仅在兼容模式下的IE中出现.我有绝对位置和z-index 99999999位置的菜单,但菜单仍隐藏在内容之间. 请检查:

Can someone please help me with this problem i am having with my menu ? THe problem is only in IE in compatibility mode. I have the menu with position absolute and z-index 99999999 but still the menu is hidden behond the content. Please check :

http://www.tomasdostal.com/projects/modul16/draft2 /?page = buildings

谢谢您的建议

推荐答案

我有一个位置为绝对且z索引为99999999的菜单

I have the menu with position absolute and z-index 99999999

您需要使用甚至更高的 z-index

 

 

..开个玩笑.

处于兼容模式的IE = IE7.

IE in compatibility mode = IE7.

IE7已知z-index的错误,请参见: IE7 Z -索引问题-上下文菜单

IE7 has known bugs with z-index, see: IE7 Z-Index issue - Context Menu

在这种特定情况下,一种解决方法是将z-index: 1添加到菜单的父级<div class="grid_3">中.

In this specific instance, one way to fix it is to add z-index: 1 to the <div class="grid_3"> that is a parent of your menu.

这篇关于绝对位置与IE的Z索引的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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