支持旧浏览器有多重要?

发布于 2024-09-27 06:53:53 字数 378 浏览 2 评论 0原文

只需阅读 yahoo 的 Nicholas C. Zakas 撰写的一篇有趣的文章:什么是网络浏览器?

您如何实现 HTML5 和 CSS3 等新技术的最佳平衡,同时保持对 ie 6 等浏览器的支持,这对于必须满足截止日期的日常 Web 开发来说是一种实用的方法吗?

Just read an interesting article by yahoo's Nicholas C. Zakas: What’s a web browser?

How do you best balance implementing new technologies like HTML5 and CSS3 while keeping support for browsers like i.e 6, is it a practical approach to day to day web development where deadlines must be met?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

歌入人心 2024-10-04 06:53:53

我认为这实际上取决于您正在构建的网站的类型以及目标最终用户的类型。如果您正在为乐队建立网站,他们往往会使用大量闪光灯/银光来使互动“酷”且更流畅。这将是一个何时全力以赴使用 HTML5 并使用 canvas 来实现某些相同效果的示例。显然 IE6 不起作用,但随着越来越多的大公司放弃对 IE6 的支持(谷歌包括了 gmail),随着时间的推移,它变得越来越不成为问题。

如果您需要开发一个人们仍然大量使用 IE6 的网站,那么您可能不希望使用最新的技术。你为让事情顺利进行而经历的痛苦最终可能是不值得的,特别是如果最后期限很紧并且你不是专家的话。

然后就是中间的情况,这里我认为如果你想继续支持IE6,你需要深思熟虑。我认识很多人放弃了支持,并发现在 CSS3 和 HTML5 与其他浏览器之间取得平衡要容易得多。它仍然不完美,但最终更容易使用。

I think it really depends on the type of site you are building as well as the type of intended end users. If you are building a site for a band, they tend to use a lot of flash/silverlight to make the interactions "cool" and more fluid. This would be an example of when to go all out with HTML5 and using canvas to accomplish some of the same effects. Obviously IE6 wouldn't work, but with more and more major companies dropping support for IE6 (Google included for gmail) it is becoming less and less of an issue as time passes.

If you need to develop a site where people will still heavily use IE6 then you might want to stay away from using the latest technologies. The pain you would go through to get things to work might not be worth it in the end especially if deadlines are tight and if you are not an expert.

Then there are the cases in the middle and here I think you need to think long and hard if you want to keep supporting IE6. I know a bunch of people who have dropped support and have found it much easier to strike the balance between CSS3 and HTML5 with the other browsers. It's still not perfect, but much easier to work with in the end.

躲猫猫 2024-10-04 06:53:53

这取决于您的流量以及谁在您的网站上花钱。对于我们来说,继续支持IE6还是有必要的,因为这些用户花费的钱不小,我们也没有能力强迫他们升级。 (如果他们花时间升级,他们就不会花时间。)

如果您的网站不是商业网站,那么您应该有更多的自由来确定最低浏览器要求。

It depends on your traffic and who is spending money on your site. For us, it's necessary to continue supporting IE6 because a not-insignificant amount of money is spent by those users, and we're not in a position to compel them to upgrade. (If they're spending time upgrading, they're not spending time spending.)

If your site is not commercial then you should have a lot more freedom in determining minimum browser requirements.

感性 2024-10-04 06:53:53

一方面,市场还没有为纯 HTML5 和 CSS3 网站做好准备。然而,另一方面,如果至少有一点可能,应该避免支持 IE6 及更早版本(请参阅 IE6-no -更多灵感运动),因为摆脱过时和有问题的技术对行业和普通互联网人口都有好处。

On one hand, the market isn't ready for HTML5 and CSS3-only sites. However, on the other hand, if at least a bit possible, one should avoid support for IE6 and older (see the IE6-no-more movement for inspiration) because it's good for the industry and the average internet population to get rid of obsolete and problematic technologies.

你另情深 2024-10-04 06:53:53

如果您想创建一个现代网站 IE HTML5 那么我建议您看看 http://html5boilerplate.com/ 如果您查看此样板文件,您会发现他们利用 modernizr JavaScript 文件为旧版本提供 HTML5 支持浏览器。

我还强烈建议您阅读 Aaron Gustafson 的了解渐进式增强 渐进式增强背后的想法是,您的网站如果在支持现代 CSS 和 HTML5 选择器/功能的浏览器中查看,同时仍为旧版浏览器提供基准,则效果最佳。还有一篇关于渐进式增强的后续文章也值得一读 http://www.alistapart.com/文章/渐进式增强CSS

If you wish to create a modern website I.E. HTML5 then I would recommend you take a look at http://html5boilerplate.com/ If you look at this boilerplate you will notice they take advantage of the modernizr JavaScript file to bring HTML5 support to older browsers.

I also strongly recommend you read Aaron Gustafson's Understanding Progressive Enhancement The idea behind progressive enhancements is that your site will look the best if viewed in a browser that supports modern CSS and HTML5 selectors/features while still providing a baseline for legacy browsers. There is a follow up article to Progressive Enhancements that is also worth a read http://www.alistapart.com/articles/progressiveenhancementwithcss

暮凉 2024-10-04 06:53:53

这取决于您的受众,只有当您确定您的用户只使用现代浏览器时,大量使用 HTML5 和 CSS3 才是可以接受的。 (从来没有这么幸运过)

目前,您只能考虑将它们用于渐进增强。也就是说,您使一个网站在 IE6 中正常工作,然后添加诸如圆形边框/阴影、 标记或使用本地存储加速网站等功能,作为额外的奖励更明智的用户。

我将在几周内开始一个大项目,我所能做的就是使用正确的文档类型、新标签和几行 javascript 使其HTML5 就绪,从而使其与旧浏览器,但目前不会使用任何很酷功能。

It depends on you audience, doing HTML5 and CSS3 heavily is acceptable only when you are sure your users will use only modern browsers. ( never been so lucky yet )

For now, you can consider them only for progressive enhancements. That is, you make a site working fine in IE6, and then you add features like round borders/shadows , the <video> tag or speeding up the site using local storage just as a bonus for the wiser users.

I'm starting a big project in few weeks, and all I can do is to make it HTML5 ready using the right doctype, the new tags and the few lines of javascript that will make it compatible with the old browsers, but will not use any cool feature for now.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文