热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

什么浏览器最适合测试Web标准?-Whatbrowserisbestfortestingwebstandards?

WhenIbuildasite,IdliketohaveatleastonebrowserIcanshowitoffinwithoutanyhacksor

When I build a site, I'd like to have at least one browser I can show it off in without any hacks or workarounds, and yet still retain maximum functionality. Knowing that none of the browsers have perfect standards adherence, which one comes closest?

当我建立一个网站时,我希望至少有一个浏览器,我可以在没有任何黑客或变通方法的情况下展示它,但仍保留最大的功能。知道没有一个浏览器具有完美的标准依从性,哪一个最接近?

Also, are there any standards areas in which a single browser seems to specialize? Opera, for instance, seems to be bent on adhering to all voice-related CSS standards.

此外,是否存在单个浏览器似乎专门化的标准领域?例如,Opera似乎倾向于坚持所有与语音相关的CSS标准。

12 个解决方案

#1


9  

Safari using the latest WebKit nightly build.

Safari使用最新的WebKit每晚构建。

Not that any browser in the world uses this yet (not even Chrome) but if all you're worried about is standards then that's your best bet - it passes Acid3, something no browser on the market can do yet.

并不是说世界上任何浏览器都使用它(甚至不是Chrome),但如果您担心的是标准,那么这是您最好的选择 - 它会通过Acid3,这是市场上没有浏览器可以做到的。

#2


15  

The way most people I know work is to run Firefox(with Firebug) and develop in that. Firebug is an invaluable tool for debugging. They will usually take what the get there and try to squeak it into IE and other browsers. Not exactly the answer to your question (Its not 100% compliant but its close), but hopefully it helps.

我认识的大多数人的工作方式是运行Firefox(使用Firebug)并在其中进行开发。 Firebug是一个非常有用的调试工具。他们通常会采取相应的措施,并尝试将其发送到IE和其他浏览器。不完全是你的问题的答案(它不是100%兼容,但它的关闭),但希望它有所帮助。

#3


8  

This is an excellent question, but I find it hard to give a single answer. Traditionally, Opera has been the most standards compliant. For a long time, it was the ONLY browser to pass the ACID2 test in fact. FireFox and IE haven't been able to claim that (although supposedly IE8 is supposed to fix that, and FF is working on it all the time).

这是一个很好的问题,但我发现很难给出一个答案。传统上,Opera是最符合标准的。很长一段时间,它实际上是唯一通过ACID2测试的浏览器。 FireFox和IE一直未能声称(虽然据说IE8应该解决这个问题,并且FF一直在努力)。

That having been said however, bear mind that IE has the largest "market share" of all the browsers right now (businesses have ties to MS, and Windows always comes with IE out of the box) followed closely by FireFox. So if your goal is to show off your app in a browser that most people will be using, it'll have to be one of those.

不过已经说过了,请记住IE现在拥有所有浏览器中最大的“市场份额”(企业与MS有联系,而Windows总是带有开箱即用的IE),紧随其后的是FireFox。因此,如果您的目标是在大多数人将使用的浏览器中展示您的应用,那么它必须是其中之一。

Purists will tell you that FF is more standards compliant than IE7 (and they are right), so that you should design for that and not IE. I can tell from many years as a designer/developer that pages taking that approach may not be a great idea. Bear in mind again - IE has the market share, and usually where it counts. So if it looks great in FF but breaks in IE, most users will be very upset, and the same vice-versa.

纯粹主义者会告诉你,FF比IE7更符合标准(并且它们是正确的),所以你应该为此设计,而不是IE。多年来,我作为一名设计师/开发人员可以说,采用这种方法的网页可能并不是一个好主意。再次牢记 - IE拥有市场份额,通常在重要的位置。因此,如果它在FF中看起来很棒但在IE中中断,大多数用户会非常沮丧,反之亦然。

Best compromise - concentrate on those two. Tweak it to look right in at least FF AND IE, and now you've covered 90%+ of the people that will be using your website.

最好的妥协 - 专注于这两个。至少在FF和IE中调整一下,现在你已经覆盖了将使用你网站的人的90%以上。

Don't get me wrong here - I'm not trying to dismiss the users of Opera, Safari, or any other browser. But if you want the most results for the least amount of work, then there ya go.

不要误解我的意思 - 我不是要解雇Opera,Safari或任何其他浏览器的用户。但如果你想要最少的工作量,那么你就去了。

Best answer - take your time, do it right, test ALL the major browsers. The time spent working through these browser headaches ahead of time (when you can do it at your own pace) will be well rewarded. Compare that to the screaming client who wants to know why your page breaks in his favorite browser, and wants it fixed today. :)

最佳答案 - 花点时间,正确行事,测试所有主流浏览器。提前完成这些浏览器工作所花费的时间(当您可以按照自己的进度完成时)将得到很好的回报。相比之下,尖叫的客户想知道为什么你的页面在他最喜欢的浏览器中断,并希望它今天修复。 :)

#4


7  

"When I build a site, I'd like to have at least one browser I can show it off in without any hacks or workarounds, and yet still retain maximum functionality."

“当我建立一个网站时,我希望至少有一个浏览器,我可以在没有任何黑客或变通办法的情况下展示它,但仍保留最大的功能。”

If you are testing your site, you would be better served to choose target browsers based on your users' needs.

如果您正在测试自己的网站,则可以根据用户的需求选择目标浏览器。

Unless you are in a position where you can force your users to change to a particular browser, you need to test your site in whatever browser(s) they use.

除非您处于可以强制用户更改为特定浏览器的位置,否则您需要在他们使用的任何浏览器中测试您的网站。

#5


5  

Opera comes closest to standards compliance.

Opera最接近标准合规性。

#6


3  

I use Firefox with IE tab and chrome. Firefox with IE tab because those are the two browsers with the most market share and chrome because it is one of the few windows browsers that use webkit, meaning it should display similarly to safari.

我使用带有IE选项卡和chrome的Firefox。带有IE标签的Firefox因为它是具有最大市场份额和chrome的两个浏览器,因为它是少数使用webkit的Windows浏览器之一,这意味着它应该与safari类似地显示。

#7


1  

The way most people I know work is to run Firefox(with Firebug) and develop in that. Firebug is an invaluable tool for debugging. They will usually take what the get there and try to squeak it into IE and other browsers. Not exactly the answer to your question (Its not 100% compliant but its close), but hopefully it helps.

我认识的大多数人的工作方式是运行Firefox(使用Firebug)并在其中进行开发。 Firebug是一个非常有用的调试工具。他们通常会采取相应的措施,并尝试将其发送到IE和其他浏览器。不完全是你的问题的答案(它不是100%兼容,但它的关闭),但希望它有所帮助。

+1 - I prefer firefox for most browsing as I find it most stable and easiest to use, but when it comes to web development it takes the cake when combined with firebug! The others are good for testing, but I find that firefox+firebug makes everything so much easier to use

+1 - 我更喜欢使用firefox进行大多数浏览,因为我发现它最稳定,最容易使用,但是当涉及到web开发时,它会与firebug结合使用!其他的很适合测试,但我发现firefox + firebug使一切都更容易使用

#8


1  

Don't just use a standards compliant browser, use other tools such as the w3c validator.

不要只使用符合标准的浏览器,使用其他工具,如w3c验证器。

#9


0  

Try Google Chrome it uses the WebKit which is feature complete for the latest standards.

尝试使用Google Chrome浏览器,它使用的WebKit功能已完全符合最新标准。

#10


0  

I used to use Opera and Firefox as my "Standards Compliant" browsers, but I've recently become much enamored with Safari. The WebKit under the hood is really solid, the Javascript is really fast (or fast enough, anyway), and and the CSS support is pretty excellent. It's not perfect, but does a really solid job of doing what it's supposed to do.

我曾经使用Opera和Firefox作为我的“标准兼容”浏览器,但我最近对Safari很感兴趣。引擎盖下的WebKit非常可靠,Javascript非常快(或者反正速度很快),并且CSS支持非常出色。它并不完美,但能够做出应该做的事情。

Also, it has the greatest print-screen feature I've ever seen in a browser. Seriously. Whereas every other browser seems to really munge up any screen I try to print, Safari always seems to get it right. A minor thing, but worth major points in my book.

此外,它具有我在浏览器中见过的最大的打印屏幕功能。认真。虽然其他所有浏览器似乎都在尝试打印任何屏幕,但Safari似乎总能做到正确。一件小事,但值得我书中的重点。

Edited to add: Chrome is coming close to taking Safari's place, but that print screen thing is still the deciding factor. Being able to just hit "print" during a meeting with a client and not have to fiddle with any settings to get it working right is a major relief.

编辑补充说:Chrome即将占据Safari的位置,但该打印屏幕仍然是决定因素。能够在与客户会面期间点击“打印”而不必调整任何设置以使其正常工作是一个重大的缓解。

#11


0  

I find that if you stick to standards compliant markup, and don't use anything too unusual, it will render fine in Firefox 2/3 and Safari/Chrome (and usually fine in IE7/8). If not, you're probably better off trying to simplify your markup, rather than introducing hacks and workarounds.

我发现如果你坚持使用符合标准的标记,并且不使用任何太不寻常的东西,它将在Firefox 2/3和Safari / Chrome中呈现良好(在IE7 / 8中通常很好)。如果没有,你可能最好不要试图简化你的标记,而不是引入黑客和变通方法。

#12


0  

Using one browser for all your testing and then hacking it for others is how most people do it but that often leads to problems. Even though Safari may be a more standards compliant browser it is not a highly popular browser and I'd lean more toward using the browser your customer's are using most while writing 100% standard code and then adjusting for idiosyncrasies of other browsers. It's not ideal but it is more customer centered thinking.

使用一个浏览器进行所有测试然后为其他人进行黑客攻击是大多数人这样做的原因,但这通常会导致问题。即使Safari可能是一个更符合标准的浏览器,它也不是一个非常受欢迎的浏览器,我更倾向于使用您的客户最常使用的浏览器,同时编写100%标准代码,然后调整其他浏览器的特性。这不是理想的,而是更加以客户为中心的思维。

I've seen web development companies with multiple full time employees that had bugs on their homepage because they did exactly what you seem to be thinking is your answer. They developed the webpage on a Mac and tested exclusively with Safari. The result was that over 60% of potential customers may have seen layout bugs if their browser was windowed.

我见过网络开发公司有多个全职员工,他们的主页上有错误,因为他们确实做了你认为正在思考的问题就是你的答案。他们在Mac上开发了网页,并仅使用Safari进行了测试。结果是,如果他们的浏览器被窗口化,超过60%的潜在客户可能已经看到布局错误。


推荐阅读
  • 浏览器作为我们日常不可或缺的软件工具,其背后的运作机制却鲜为人知。本文将深入探讨浏览器内核及其版本的演变历程,帮助读者更好地理解这一关键技术组件,揭示其内部运作的奥秘。 ... [详细]
  • 在对WordPress Duplicator插件0.4.4版本的安全评估中,发现其存在跨站脚本(XSS)攻击漏洞。此漏洞可能被利用进行恶意操作,建议用户及时更新至最新版本以确保系统安全。测试方法仅限于安全研究和教学目的,使用时需自行承担风险。漏洞编号:HTB23162。 ... [详细]
  • 深入解析HTML5字符集属性:charset与defaultCharset
    本文将详细介绍HTML5中新增的字符集属性charset和defaultCharset,帮助开发者更好地理解和应用这些属性,以确保网页在不同环境下的正确显示。 ... [详细]
  • Python 数据可视化实战指南
    本文详细介绍如何使用 Python 进行数据可视化,涵盖从环境搭建到具体实例的全过程。 ... [详细]
  • 在多线程并发环境中,普通变量的操作往往是线程不安全的。本文通过一个简单的例子,展示了如何使用 AtomicInteger 类及其核心的 CAS 无锁算法来保证线程安全。 ... [详细]
  • javascript分页类支持页码格式
    前端时间因为项目需要,要对一个产品下所有的附属图片进行分页显示,没考虑ajax一张张请求,所以干脆一次性全部把图片out,然 ... [详细]
  • 该大学网站采用PHP和MySQL技术,在校内可免费访问某些外部收费资料数据库。为了方便学生校外访问,建议通过学校账号登录实现免费访问。具体方案可包括利用学校服务器作为代理,结合身份验证机制,确保合法用户在校外也能享受免费资源。 ... [详细]
  • 本文介绍了如何利用Struts1框架构建一个简易的四则运算计算器。通过采用DispatchAction来处理不同类型的计算请求,并使用动态Form来优化开发流程,确保代码的简洁性和可维护性。同时,系统提供了用户友好的错误提示,以增强用户体验。 ... [详细]
  • 优化后的标题:深入探讨网关安全:将微服务升级为OAuth2资源服务器的最佳实践
    本文深入探讨了如何将微服务升级为OAuth2资源服务器,以订单服务为例,详细介绍了在POM文件中添加 `spring-cloud-starter-oauth2` 依赖,并配置Spring Security以实现对微服务的保护。通过这一过程,不仅增强了系统的安全性,还提高了资源访问的可控性和灵活性。文章还讨论了最佳实践,包括如何配置OAuth2客户端和资源服务器,以及如何处理常见的安全问题和错误。 ... [详细]
  • 在Android平台中,播放音频的采样率通常固定为44.1kHz,而录音的采样率则固定为8kHz。为了确保音频设备的正常工作,底层驱动必须预先设定这些固定的采样率。当上层应用提供的采样率与这些预设值不匹配时,需要通过重采样(resample)技术来调整采样率,以保证音频数据的正确处理和传输。本文将详细探讨FFMpeg在音频处理中的基础理论及重采样技术的应用。 ... [详细]
  • 在Ubuntu系统中安装Android SDK的详细步骤及解决“Failed to fetch URL https://dlssl.google.com/”错误的方法
    在Ubuntu 11.10 x64系统中安装Android SDK的详细步骤,包括配置环境变量和解决“Failed to fetch URL https://dlssl.google.com/”错误的方法。本文详细介绍了如何在该系统上顺利安装并配置Android SDK,确保开发环境的稳定性和高效性。此外,还提供了解决网络连接问题的实用技巧,帮助用户克服常见的安装障碍。 ... [详细]
  • 该问题可能由守护进程配置不当引起,例如未识别的JVM选项或内存分配不足。建议检查并调整JVM参数,确保为对象堆预留足够的内存空间(至少1572864KB)。此外,还可以优化应用程序的内存使用,减少不必要的内存消耗。 ... [详细]
  • 数字图书馆近期展出了一批精选的Linux经典著作,这些书籍虽然部分较为陈旧,但依然具有重要的参考价值。如需转载相关内容,请务必注明来源:小文论坛(http://www.xiaowenbbs.com)。 ... [详细]
  • 七款高效编辑器与笔记工具推荐:KindEditor自动换行功能解析
    本文推荐了七款高效的编辑器与笔记工具,并详细解析了KindEditor的自动换行功能。其中,轻笔记QingBiJi是一款完全免费的记事本软件,用户可以通过其简洁的界面和强大的功能轻松记录和管理日常事务。此外,该软件还支持多平台同步,确保用户在不同设备间无缝切换。 ... [详细]
  • 在第10天的夜灵HTML日志中,我们深入探讨了浏览器兼容性和高级选择器的应用。CSS3引入了许多新属性,但在旧版浏览器中的支持情况并不理想。然而,目前主流浏览器的最新版本已全面支持这些新特性。对于那些不支持CSS3新属性的浏览器,我们提供了多种解决方案,以确保网站在不同环境下的兼容性和用户体验。此外,我们还详细讨论了如何利用高级选择器提升页面布局的灵活性和可维护性。 ... [详细]
author-avatar
文武2602897197
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有