Gecko(Firefox 3.6/4beta) 隐藏 Div 而 Webkit(Chrome/Dreamweaver) 显示正常
我遇到了一个问题,我已经工作了几天了,但似乎无法在网上找到答案。我现在正在处理的网站模板位于“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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的广告拦截 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, thediv
appears if I disable Adblock Plus. One of the more basic rules Adblock Plus and the like follow is to look for HTML elements withclass="sponsors"
orid="sponsors"
and remove them.