FF 和 Chrome 破坏布局最可能的原因是什么?
问题
我遇到的
是 WordPress 驱动的网站的“特色文章”部分在当前版本的 Opera、Safari 和 IE6+ 中按预期呈现,但在当前版本的 Chrome 和 FF 中出现中断。网站
可以在此处查看该网站。 “特色文章”部分位于主页顶部。
我尝试过
使用 firebug 并通过 W3C 验证筛选代码。尽管有很多错误,但我并没有发现任何原因。
其他信息
我被告知该代码在 Mac 上的所有浏览器上一致地呈现,但在 PC 上则不然。
我需要什么
虽然我不代表该网站,也不参与该网站的工作,但我只是想了解为什么会出现跨浏览器问题。
The problem
I've come across a "featured articles" section of a WordPress driven website the renders as expected in the current versions Opera, Safari and IE6+ but breaks in the current versions of Chrome and FF.
The website
The website can be viewed here. The "featured article" section is visible at the top of the home page.
What I've tried
I've used firebug and screened the code through the W3C validation. Though there are numerous errors nothing jumps out at me as the cause.
Additional information
I've been told that the code renders consistently across all browsers on a Mac but not on PC's.
What I need
Though I do not represent the website nor am I working on it I simply want to understand why the cross-browser issue is occurring.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果页面无效,则浏览器将尽力在渲染之前修复它。在 Chrome 中,您可以查看控制台输出,它可以告诉您它如何选择解决问题。确实不值得研究原因,因为每个浏览器的开发团队都会选择以不同的方式解决问题。现在,如果页面有效并且它们的呈现方式不同,那么了解原因将很有用。
If the page isn't valid then a browser will try its best to fix it before rendering. In chrome you can view console output and it can tell you how it chose to fix problems. It really isn't worth investigating the why as each browser's development team will choose to solve problems in different ways. Now if the page is valid and they render differently it would be useful to know why.