Z-index在ie中不工作 [英] Z-index does not work in ie

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

问题描述

我的网页中有多个div。有这个javascript幻灯片放映,我把一个菜单上的幻灯片和定位的div绝对。我已经格式化与z索引的顺序。他们在firefox工作完美,但Internet Explorer不工作。

I have multiple divs in my webpage. there is this javascript slide show and i have put a menu over that slideshow and positioned the div absolute. I have formatted the order with z-indexes. They work perfect in firefox but Internet Explorer does not work on that. what can be the solution.

提前感谢。

推荐答案

如果您在任何地方有一个全页封装div,或者可以使有一个祖先/父div,您可以随意更改...

If you have a full page wrapper div anywhere or can make one or there is an ancestor/parent div you can freely alter,...

显示状态 position:relative; position:absolute; 并且任一方式也设置 z-index:0; 或您可以使用的最低值。

Explicitly state position: relative; or position: absolute; and either way also set z-index: 0; or the lowest value you can use.

一些浏览器(特别是一些IE)允许更小范围的z-index。

Also some browsers (especially some IEs) allow a smaller range of z-index.

确保1和100之间的值是安全的。可能更像1-255,但我模糊地回忆一些旧问题,...

For sure values between 1 and 100 are safe. Probably more like 1-255 but I vaguely recall some old issue,...

这篇关于Z-index在ie中不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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