网站顶部部分在 IE7 中消失

发布于 2024-09-29 03:24:33 字数 269 浏览 4 评论 0原文

我正在一个网站上工作,标题元素仅在 IE7 中完全消失(它在 IE6 和 IE8 中显示)。它显示一秒钟,然后一旦整个页面加载,它就会消失。我不知道是什么原因造成的。消失的部分是我通过 PHP 包含的部分,但当我实际将其插入文件时它仍然没有显示,所以我认为这不是问题。任何帮助将不胜感激。我可以发布任何有用的代码,但其中大部分应该能够通过查看源代码或检查元素找到。

顺便说一句,我的不透明度在任何版本的 IE 中都不起作用。我将它们放在单独的 IE CSS 文档中并使用过滤器,所以我不确定为什么它不起作用。

I am working on a site and the header element is completely disappearing in only IE7 (it shows in IE6 and IE8). It shows for a second, then once the whole page is loaded, it disappears. I have no idea what could be causing this. The portion disappearing is the section I have included via PHP, but it still doesn't show when I actually insert it into the file, so I don't think that is the problem. Any help would be appreciated. I can post any code that would be helpful, but most of it should be able to be found through the view source or inspecting an element.

On a side note, my opacities aren't working in any version of IE either. I have them in a separate IE CSS document and am using the filters, so I am not sure why it is not working.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

ゃ懵逼小萝莉 2024-10-06 03:24:33

我想通了。显然 IE7 不喜欢负 z-index 值,因此将我的背景图像放置在 HTML 中位于其上方的页面上的某些元素上。奇怪,但我想这就是适合你的 IE。

I figured it out. Apparently IE7 doesn't like negative z-index values and so was placing my background image over certain elements on the page that were above it in the HTML. Strange, but that's IE for you I guess.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文