Gecko(Firefox 3.6/4beta) 隐藏 Div 而 Webkit(Chrome/Dreamweaver) 显示正常

发布于 2024-10-06 12:14:13 字数 412 浏览 5 评论 0原文

我遇到了一个问题,我已经工作了几天了,但似乎无法在网上找到答案。我现在正在处理的网站模板位于“http://citylakersbaseball.org/2.0” - 我有一个名为“sponsors”的 div,它在 Chrome 和 Dreamweaver CS5 的内置实时视图中显示良好 -然而,在 Firefox 3.6 和 Firefox 3.6 中, 4beta它完全消失了。我可以在查看源代码中看到它,但 firebug 将其显示为灰色。也许这是一个 DOM 问题? (对此我不太了解)。渲染引擎问题?

我通过 HTML 验证器运行了源代码(index,htm)和 CSS(style.css/nav.css) - HTML 很好,CSS 没有吐出任何我认为可能影响 div 显示的内容,特别是自从 Webkit 以来没有任何问题。

任何想法将不胜感激。提前致谢!

I've ran into a snag I've been working on for a couple days and can't seem to come up with an answer online. The site template I'm working on now is located at "http://citylakersbaseball.org/2.0" - I've got a div named "sponsors" that shows up fine in Chrome and the built in Live View of Dreamweaver CS5 - however, in Firefox 3.6 & 4beta it completely vanishes. I can see it in the view source, yet firebug has it grayed out. Maybe it's a DOM issue? (for which I don't know much about). Rendering engine issue?

I ran the source (index,htm) and CSS (style.css/nav.css) through the HTML validator - HTML is fine, and the CSS didn't spit back anything I would think could effect the div's display, especially since Webkit has no issues with it.

Any thoughts would be appreciated. Thanks in advance!

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

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

发布评论

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

评论(1

不交电费瞎发啥光 2024-10-13 12:14:13

您的广告拦截 Firefox 插件正在检测并从 DOM 中删除 div。我在 Chrome 和 Firefox(有广告拦截插件/扩展程序)中遇到了同样的行为,但在 Safari 或 IE(没有)中却没有;事实上,如果我禁用 Adblock Plus,div 就会出现。 Adblock Plus 等遵循的更基本规则之一是查找带有 class="sponsors"id="sponsors" 的 HTML 元素并将其删除。

Your ad-blocking Firefox plugin is detecting and removing the div from the DOM. I experienced the same behaviour in Chrome and Firefox (which have ad-blocking plugins/extensions), but not in Safari or IE (which don't); and, indeed, the div appears if I disable Adblock Plus. One of the more basic rules Adblock Plus and the like follow is to look for HTML elements with class="sponsors" or id="sponsors" and remove them.

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