热门标签 | 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%的潜在客户可能已经看到布局错误。


推荐阅读
  • 微软头条实习生分享深度学习自学指南
    本文介绍了一位微软头条实习生自学深度学习的经验分享,包括学习资源推荐、重要基础知识的学习要点等。作者强调了学好Python和数学基础的重要性,并提供了一些建议。 ... [详细]
  • VScode格式化文档换行或不换行的设置方法
    本文介绍了在VScode中设置格式化文档换行或不换行的方法,包括使用插件和修改settings.json文件的内容。详细步骤为:找到settings.json文件,将其中的代码替换为指定的代码。 ... [详细]
  • CSS3选择器的使用方法详解,提高Web开发效率和精准度
    本文详细介绍了CSS3新增的选择器方法,包括属性选择器的使用。通过CSS3选择器,可以提高Web开发的效率和精准度,使得查找元素更加方便和快捷。同时,本文还对属性选择器的各种用法进行了详细解释,并给出了相应的代码示例。通过学习本文,读者可以更好地掌握CSS3选择器的使用方法,提升自己的Web开发能力。 ... [详细]
  • Android Studio Bumblebee | 2021.1.1(大黄蜂版本使用介绍)
    本文介绍了Android Studio Bumblebee | 2021.1.1(大黄蜂版本)的使用方法和相关知识,包括Gradle的介绍、设备管理器的配置、无线调试、新版本问题等内容。同时还提供了更新版本的下载地址和启动页面截图。 ... [详细]
  • 知识图谱——机器大脑中的知识库
    本文介绍了知识图谱在机器大脑中的应用,以及搜索引擎在知识图谱方面的发展。以谷歌知识图谱为例,说明了知识图谱的智能化特点。通过搜索引擎用户可以获取更加智能化的答案,如搜索关键词"Marie Curie",会得到居里夫人的详细信息以及与之相关的历史人物。知识图谱的出现引起了搜索引擎行业的变革,不仅美国的微软必应,中国的百度、搜狗等搜索引擎公司也纷纷推出了自己的知识图谱。 ... [详细]
  • 推荐系统遇上深度学习(十七)详解推荐系统中的常用评测指标
    原创:石晓文小小挖掘机2018-06-18笔者是一个痴迷于挖掘数据中的价值的学习人,希望在平日的工作学习中,挖掘数据的价值, ... [详细]
  • Windows7 64位系统安装PLSQL Developer的步骤和注意事项
    本文介绍了在Windows7 64位系统上安装PLSQL Developer的步骤和注意事项。首先下载并安装PLSQL Developer,注意不要安装在默认目录下。然后下载Windows 32位的oracle instant client,并解压到指定路径。最后,按照自己的喜好对解压后的文件进行命名和压缩。 ... [详细]
  • CEPH LIO iSCSI Gateway及其使用参考文档
    本文介绍了CEPH LIO iSCSI Gateway以及使用该网关的参考文档,包括Ceph Block Device、CEPH ISCSI GATEWAY、USING AN ISCSI GATEWAY等。同时提供了多个参考链接,详细介绍了CEPH LIO iSCSI Gateway的配置和使用方法。 ... [详细]
  • 移动端常用单位——rem的使用方法和注意事项
    本文介绍了移动端常用的单位rem的使用方法和注意事项,包括px、%、em、vw、vh等其他常用单位的比较。同时还介绍了如何通过JS获取视口宽度并动态调整rem的值,以适应不同设备的屏幕大小。此外,还提到了rem目前在移动端的主流地位。 ... [详细]
  • centos安装Mysql的方法及步骤详解
    本文介绍了centos安装Mysql的两种方式:rpm方式和绿色方式安装,详细介绍了安装所需的软件包以及安装过程中的注意事项,包括检查是否安装成功的方法。通过本文,读者可以了解到在centos系统上如何正确安装Mysql。 ... [详细]
  • 本文分析了Wince程序内存和存储内存的分布及作用。Wince内存包括系统内存、对象存储和程序内存,其中系统内存占用了一部分SDRAM,而剩下的30M为程序内存和存储内存。对象存储是嵌入式wince操作系统中的一个新概念,常用于消费电子设备中。此外,文章还介绍了主电源和后备电池在操作系统中的作用。 ... [详细]
  • Iamtryingtocreateanarrayofstructinstanceslikethis:我试图创建一个这样的struct实例数组:letinstallers: ... [详细]
  • 本文介绍了Windows Vista操作系统中的用户账户保护功能,该功能是为了增强系统的安全性而设计的。通过对Vista测试版的体验,可以看到系统在安全性方面的进步。该功能的引入,为用户的账户安全提供了更好的保障。 ... [详细]
  • Sleuth+zipkin链路追踪SpringCloud微服务的解决方案
    在庞大的微服务群中,随着业务扩展,微服务个数增多,系统调用链路复杂化。Sleuth+zipkin是解决SpringCloud微服务定位和追踪的方案。通过TraceId将不同服务调用的日志串联起来,实现请求链路跟踪。通过Feign调用和Request传递TraceId,将整个调用链路的服务日志归组合并,提供定位和追踪的功能。 ... [详细]
  • 1简介本文结合数字信号处理课程和Matlab程序设计课程的相关知识,给出了基于Matlab的音乐播放器的总体设计方案,介绍了播放器主要模块的功能,设计与实现方法.我们将该设 ... [详细]
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社区 版权所有