What is the difference between Progressive Enhancement and Graceful Degradation?

前端 未结 8 2168
心在旅途
心在旅途 2020-12-12 12:52

I\'m confused on what the difference is between Progressive Enhancement and Graceful Degradation. To me they seem like the same thing.

8条回答
  •  佛祖请我去吃肉
    2020-12-12 13:24

    If your site looks equally good on all browsers, but certain browsers get, say, dancing ponies because they support dancing ponies, then that's Progressive Enhancement. It works in all browsers, but certain browsers get something extra. Usually that term is applied to certain Javascript features that may enhance usability beyond "raw HTML".

    If your site only looks the way you intend to on browsers that fully support, say, CSS3, and IE8- will display the same page without, say, rounded corners, then that's Graceful Degradation. The site is really meant for state-of-the-art browsers, but it's still usable in older browsers, just not as fancy.

    In the end, they're really the same thing, looked at from two different perspectives.

提交回复
热议问题