且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

固定定位z-index

更新时间:2023-01-06 15:33:49

快速测试 。最简单的形式 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;.