不兼容问题:使用哪种浏览器进行开发?
我有一台苹果电脑。我想知道我应该使用哪种浏览器(safari 或 firefox)来开发我的原型,firefox 还是 safari?
因为我注意到它们会产生不同的效果。有些在 Safari 中工作的东西在 Firefox 中不起作用,反之亦然。
有人还可以给我一些如何处理不兼容问题的建议吗?
i have a mac. i wonder which browser (safari or firefox) i should use to develop my prototype, firefox or safari?
because i have noticed they will give different effects. some things working in safari dont work in firefox and vice versa.
could someone also give me some advices of how to deal with incompatibility problems.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
您应该使用 FireFox 和 Internet Explorer 8。也许还应该使用 Google 的 Chrome 测试您的代码。 Chrome操作系统或多或少主要是Chrome浏览器,如果手机公司销售的上网本还没有推出的话,它很快就会推出。
You should use FireFox and Internet Explorer 8. Probably should test your code with Google's Chrome too. Chrome OS, that more or less is mainly the Chrome brower, will be out soon if it isn't already with NetBooks sold by cell phone companys.
一般建议是使用 doctype,这会强制所有浏览器呈现相同的内容方式。虽然在实践中我发现这行不通,所以我没有这样做。我通常并肩工作,从 FF 开始,然后转向其他人进行测试。如果您从一个可靠的框架(即 jQuery 或类似框架)构建并坚持“基础知识”,这会有所帮助。至少这是我的做法; YMMV。
The general advice is to use a doctype, which forces the browsers to all render the same way. Though in practice I've found this to not work out, so I don't do it. I generally work side-by-side, starting in FF and moving to others to test. It helps if you build from a solid framework (i.e. jQuery or similar) and just stick to the "basics". At least this is my approach; YMMV.
两个都。您确实希望两种浏览器的用户都能够浏览您的网站,对吧?
Both. You do want users of both browsers to be able to navigate your site, right?
在我的工作中,使用 FireFox 作为基础效果非常好。根据我的经验,它“最接近”标准,并且有用于 Web 开发的出色插件。如果您的主要问题是 css 不兼容,您可以在 FF 中解决问题后为每个浏览器创建修复程序。
In my work using FireFox as base has worked very well. In my experience it is "closest" to standards and there are wonderful plug-ins for web-development. If your main problems are css incompatibilites you can create the fixes for each browser when you get it right in FF.
我以前使用 Firefox 作为我的 #1 开发浏览器,使用 FireBug 等插件以及许多其他插件,但现在我使用 Safari,发现它的 Javascript 调试和 DOM 检查非常出色。
答案是同时使用两者 - 但你总是会多使用其中一个,而且我发现 Safari 更适合。一旦我对 Safari 感到满意,我就会用 Firefox 进行最后的双重检查,然后回到 1990 年并用 IE6 检查
I previously used Firefox as my #1 browser for development, employing plugins like FireBug and it's many additional plugins but now I use Safari and find it's Javascript debugging and DOM inspection excellent.
The answer is to use both though - but you'll always use one more than the other and I find Safari to be a better fit. Once I'm happy with Safari I then do the final double check with Firefox, then go back to 1990 and check with IE6