是渐进增强和优雅退化同样的东西,实际上说? [英] Are progressive enhancement and graceful degradation same thing, practically speaking?

查看:194
本文介绍了是渐进增强和优雅退化同样的东西,实际上说?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

推荐答案

不完全。他们处理类似的问题,但是从不同的角度。

Not quite. They tackle similar problems, but from different angles.

优雅退化意味着你有一些spiffy功能,并且可以处理它更少的spiffy不知何故)在不支持它的浏览器。图像上的alt属性以及< noscript> 标签就是这样的例子。

"Graceful degradation" implies you have spiffy functionality, and can deal with it being less spiffy (but still need it to work somehow) in browsers that don't support it. "alt" attributes on images, and the <noscript> tag, are examples of this.

增强意味着你刚开始只是基本的内容,并希望添加spiff的浏览器支持它,而不打破网站的那些没有。举个例子,假设你有一个链接列表作为导航菜单。它工作正常,但如果你添加一些javascript它可以给你弹出菜单,工具提示,这一切。

"Progressive enhancement" implies you're starting out with just basic content, and want to add spiff for browsers that support it without breaking the site for those that don't. As an example of this, imagine you have a list of links that serves as your nav menu. It works fine, but if you add some javascript it can give you flyout menus, tooltips, and all that.

基本上,渐进增强说开始与良好的内容,并且使它更好,当你可以,和优雅的退化说我认为你可以做这个很酷的东西...但如果你不能...好...这里还有一些其他垃圾你可以做。

Basically, progressive enhancement says "start out with good content, and make it better when you can", and graceful degradation says "i assume you can do this cool stuff...but if you can't...well...here's some other crap you can do."

猜猜哪一个更好。

这篇关于是渐进增强和优雅退化同样的东西,实际上说?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆