如何修复浏览器兼容性
我开发了一个html文件。 它在 IE6 和 IE7 中运行良好。 当我在 IE8 中运行相同的 html 文件时,设计不一样并且 Javascript 无法正常工作。 它显示浏览器的“兼容性视图”?
我该如何解决?
I have developed a html file. It is working fine in IE6 and IE7. When I run the same html file in IE8, the design is not the same and the Javascript is not working properly. It is showing browser's "Compatibility view"?
How do I fix this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
由于您没有向我们提供足够的信息,因此很难真正帮助您。 您的问题非常广泛,因为让您的网站在所有浏览器中显示相同的内容需要大量工作,并且特定布局在特定浏览器中不起作用的原因几乎是无限的。
不过,有一些重要的事情可以帮助您开始您的旅程:
一旦我开始做这些事情,让我的网站在浏览器中同样工作就变得容易多了。
It is difficult to really help you as you are not giving us enough information. Your question is very broad in the sense that getting your website to display the same in all browsers is a lot of work and the reasons why a particular layout is not working in a particular browser are just about infinite.
A few important things to get you started on your journey, though:
Once I started doing these things, making my site work the same across browsers got a whole lot easier.
读一下这篇文章,它详细介绍了导致 IE8 切换到兼容模式的原因以及如何修复它们。
http://blogs.msdn。 com/ie/archive/2009/03/12/site-compatibility-and-ie8.aspx
Give this a read, it details the things that cause IE8 to switch to compatibility mode, and how to fix them.
http://blogs.msdn.com/ie/archive/2009/03/12/site-compatibility-and-ie8.aspx
以下操作:
那么我们可能可以帮助你
You must give us some example codes (or even working website) and do something like:
Then we might be can help you