固定定位z-index [英] Fixed Positioning breaking z-index

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

问题描述

我有一个需要修改的网页,背景,当前使用z-index绝对定位以将其推回,当滚动时需要保持放置,我需要将其更改为固定,但似乎这样做打破z-index并垂直向下推动它。任何想法?

编辑:
确定我设法让它在FF中工作,但IE仍然被破坏...

解决方案

快速测试 。最简单的形式 z-index 在使用 position:fixed;

$ b时不会中断$ b

I have a webpage that I need to modify, the background, which is currently absolute positioned with z-index to push it back, needs to stay put when scrolling, i need to change it to fixed, yet doing so seems to break z-index and push the content below it vertically. Any ideas?

edit: OK I managed to get it to work in FF, but IE is still broken...

解决方案

Made a quick test. In its simplest form z-index doesn't break when using position: fixed;.

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

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