如何管理跨浏览器兼容性问题

如何管理跨浏览器兼容性问题

本文介绍了如何管理跨浏览器兼容性问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新开发的。我想知道我们如何能够管理跨浏览器兼容性问题。例如有时,它发生相同的代码是使用firefox,但不是与IE。我有一个问题,我的代码downlao

I am new to development. I want to know that how we can manage the cross browser compatiability problems. for example some times it happens that same code is working with firefox but not with IE. I had an issue that one of my code of downlao

推荐答案

每当有人说他们有跨浏览器问题意味着它不工作在IE。通常,开发人员使用IE作为它们的工作参考,这是他们可以做的最糟糕的事情,因为IE比现代标准和合规性和最佳无效的所有其他浏览器13年。

Whenever anyone says they have "cross browser issues", they almost always mean "it doesn't work in IE". Frequently, the developer uses IE as their reference for how things work which is the worst thing they could do since IE is 13 years behind all other browsers in modern standards and compliance and inept at best.

因此,总是使用现代浏览器(除IE外的任何东西)来初始测试您的标记。除了HTML和CSS的验证,这将使你的代码在大多数情况下无处不在。然后你知道你的代码写得正确。当你去,看看IE,看看它是如何拧紧一切,但IE的怪癖和bug是众所周知的,以及修复它的黑客。

Therefore, always use a modern browser (anything but IE) to initially test your markup. Along with validation of HTML and CSS, this will make your code work everywhere in most cases. Then you know your code is written correctly. As you go along, look in IE to see how it screws everything up but the quirks and bugs of IE are well known, as are the hacks to fix it.

从不,永远信任IE做任何事情。不要因为IE9将是任何救世主的谬误。

Never, ever trust IE to do anything right. Do NOT fall for the fallacy that IE9 will be any savior either.

这篇关于如何管理跨浏览器兼容性问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-13 15:01