reviews of designing with web standards

78
Reviews of Designing with Web Standards @AvenirZheng http://avenirzheng.net

Upload: avenirzheng

Post on 28-Jan-2015

109 views

Category:

Technology


5 download

DESCRIPTION

WebRebuild年会深圳站分享主题,《重温网站重构》 - 郑焕义/AvenirZheng http://avenirzheng.net

TRANSCRIPT

Page 1: Reviews of Designing with Web Standards

Reviews of Designing with Web Standards

@AvenirZhenghttp://avenirzheng.net

Page 2: Reviews of Designing with Web Standards

• 为了让网站能“活”得更久• 为了提高网站的可访问性• 为了降低成本

• 让用户更爽!

• 让老板更爽!

• 让自己更爽!

Page 3: Reviews of Designing with Web Standards

二)让老板更爽!三)让自己更爽!

Page 4: Reviews of Designing with Web Standards

• 用户体验- 速度

除了少数有毅力和耐心的客户能够等到所有的页面打开,大多数人 早已因厌倦而离开 - 《网站重构》 P4

• 可访问性

- 语义基础

- 平凡的用户

Page 5: Reviews of Designing with Web Standards

• 主要内容先呈现• REFLOW

Page 6: Reviews of Designing with Web Standards

• 主要内容先呈现• REFLOW

制作一个页面,首先要一个top,下面是一个bottom,中间是一个三列块的模式,left,main,right。特殊要求是这个页是一个门户网站的基本框架,访问量大于100W每日。因成本限制,网络带宽可能满足不了此访问量,会出现滞连情况。

Page 7: Reviews of Designing with Web Standards

• 主要内容先呈现

• REFLOW

Page 8: Reviews of Designing with Web Standards

• 主要内容先呈现

• REFLOW ① CSS选择符- 具体- 从右到左- 避免复杂

Page 9: Reviews of Designing with Web Standards

• 主要内容先呈现

• REFLOW ① CSS选择符- 具体- 从右到左- 避免复杂

.class0177div div #id0177 a#id0177 *

谁更高效一些?http://stevesouders.com/efws/css-selectors/

Page 10: Reviews of Designing with Web Standards

• 主要内容先呈现

• REFLOW ① CSS选择符- 具体- 从右到左- 避免复杂

.class0177div div #id0177 a#id0177 *

谁更高效一些?http://stevesouders.com/efws/css-selectors/

Page 11: Reviews of Designing with Web Standards

• 主要内容先呈现

• REFLOW ① CSS选择符- 具体- 从右到左- 避免复杂

.class0177div div #id0177 a#id0177 *

谁更高效一些?http://stevesouders.com/efws/css-selectors/

Page 12: Reviews of Designing with Web Standards

• 主要内容先呈现

• REFLOW ① CSS选择符- 具体- 从右到左- 避免复杂

.class0177div div #id0177 a#id0177 *

谁更高效一些?http://stevesouders.com/efws/css-selectors/

Page 13: Reviews of Designing with Web Standards

• 主要内容先呈现

• REFLOW

Page 14: Reviews of Designing with Web Standards

• 主要内容先呈现

• REFLOW ② 精简DOM- 避免复杂嵌套

③ position为absolute戒fixed

Reflow Timer

Page 15: Reviews of Designing with Web Standards

• 主要内容先呈现

• REFLOW ② 精简DOM- 避免复杂嵌套

③ position为absolute戒fixed

Reflow Timer

Page 16: Reviews of Designing with Web Standards

• 主要内容先呈现

• REFLOW ② 精简DOM- 避免复杂嵌套

③ position为absolute戒fixed

Page 17: Reviews of Designing with Web Standards

• 用户体验

- 速度

• 可访问性

- 语义基础Classitis和divitis就像小说中不必要的修饰词语,以及花园中的杂草 -

《网站重构》P149

- 平凡的用户

Page 18: Reviews of Designing with Web Standards

• Div+CSS• ALT OR TITLE

Page 19: Reviews of Designing with Web Standards

• Div+CSS• ALT OR TITLE

Page 20: Reviews of Designing with Web Standards

• Div+CSS• ALT OR TITLE

Page 21: Reviews of Designing with Web Standards

• DIV+CSS

• ALT or TITLE

Page 22: Reviews of Designing with Web Standards

• DIV+CSS

• ALT or TITLE

帮忙加个图片提示吧

Page 23: Reviews of Designing with Web Standards

• 用户体验

- 速度

• 可访问性

- 语义基础

- 平凡的用户给每个人提供相等的可访问性 - 《网站重构》P276

Page 24: Reviews of Designing with Web Standards

• 我不喜欢用鼠标• 手机流量费用太高了

• 听不见的世界

Page 25: Reviews of Designing with Web Standards

• 我不喜欢用鼠标• 手机流量费用太高了

• 听不见的世界

Page 26: Reviews of Designing with Web Standards

• 我不喜欢用鼠标

• 手机流量费用太高了• 听不见的世界

Page 27: Reviews of Designing with Web Standards

• 我不喜欢用鼠标

• 手机流量费用太高了• 听不见的世界

Page 28: Reviews of Designing with Web Standards

• 我不喜欢用鼠标

• 手机流量费用太高了• 听不见的世界

导航什么的都不见了

Page 29: Reviews of Designing with Web Standards

• 我不喜欢用鼠标

• 手机流量费用太高了• 听不见的世界

Page 30: Reviews of Designing with Web Standards

• 我不喜欢用鼠标

• 手机流量费用太高了• 听不见的世界

Page 31: Reviews of Designing with Web Standards

• 我不喜欢用鼠标

• 手机流量费用太高了

• 听不见的世界

Page 32: Reviews of Designing with Web Standards
Page 33: Reviews of Designing with Web Standards

还记得刚才的alt or title吗?

Page 34: Reviews of Designing with Web Standards
Page 35: Reviews of Designing with Web Standards

① 快!

② 人人生而平等

Page 36: Reviews of Designing with Web Standards

一)让用户更爽!

三)让自己更爽!

Page 37: Reviews of Designing with Web Standards

• 效率- 自动化

所有的繁重工作都由计算机来完成 - 《网站重构》 P156

- 模板

• 成本

- 分离

- 优化

Page 38: Reviews of Designing with Web Standards

• PHOTOSHOP动作• 批量替代

• 自动完成

• ZEN-CODING

Page 39: Reviews of Designing with Web Standards

• PHOTOSHOP动作• 批量替代

• 自动完成

• ZEN-CODING

Page 40: Reviews of Designing with Web Standards

• PHOTOSHOP动作• 批量替代

• 自动完成

• ZEN-CODING

Page 41: Reviews of Designing with Web Standards

• PHOTOSHOP动作• 批量替代

• 自动完成

• ZEN-CODING

Page 42: Reviews of Designing with Web Standards

• PHOTOSHOP动作• 批量替代

• 自动完成

• ZEN-CODING

Page 43: Reviews of Designing with Web Standards

• PHOTOSHOP动作

• 批量替代• 自动完成

• ZEN-CODING

Page 44: Reviews of Designing with Web Standards

• PHOTOSHOP动作

• 批量替代• 自动完成

• ZEN-CODING

Page 45: Reviews of Designing with Web Standards

• PHOTOSHOP动作

• 批量替代

• 自动完成• ZEN-CODING

Page 46: Reviews of Designing with Web Standards

• PHOTOSHOP动作

• 批量替代

• 自动完成

• ZEN-CODING

http://www.qianduan.net/zen-coding-a-new-way-to-write-html-code.html

Page 47: Reviews of Designing with Web Standards

• Fiddler & Willow - 文件夹映射

- HOST环境切换

• CSSGAGA [ HTTP://WWW.99CSS.COM/ ]

- 自动压缩

- 生成DATA URI

- 合并CSS文件

Page 48: Reviews of Designing with Web Standards

• FIDDLER & WILLOW

- 文件夹映射

- HOST环境切换

• CssGaga [ http://www.99css.com/ ]- 自动压缩

- 生成data URI

- 合并CSS文件

Page 49: Reviews of Designing with Web Standards

• FIDDLER & WILLOW

- 文件夹映射

- HOST环境切换

• CssGaga [ http://www.99css.com/ ]- 自动压缩

- 生成data URI

- 合并CSS文件

Page 50: Reviews of Designing with Web Standards

• 效率

- 自动化

- 模板

• 成本

- 分离

- 优化

Page 51: Reviews of Designing with Web Standards

• 对于周期较短的运营活动项目

• 内容结构趋同的专题

Page 52: Reviews of Designing with Web Standards

• 对于周期较短的运营活动项目

• 内容结构趋同的专题

Page 53: Reviews of Designing with Web Standards

• 对于周期较短的运营活动项目

• 内容结构趋同的专题

Page 54: Reviews of Designing with Web Standards

• 效率

- 自动化

- 模板

• 成本

- 分离文档一次建立,随处可用 - 《网站重构》 P42

- 优化

Page 55: Reviews of Designing with Web Standards

• 多终端• 流量

• 维护

Page 56: Reviews of Designing with Web Standards

• 多终端• 流量

• 维护

Page 57: Reviews of Designing with Web Standards

• 多终端

• 流量

• 维护

Page 58: Reviews of Designing with Web Standards

• 效率

- 自动化

- 模板

• 成本

- 分离

- 优化节省每一兆字节的流量 - 《网站重构》 P18

Page 59: Reviews of Designing with Web Standards

• 图片优化• 压缩代码

• 不停地优化

Page 60: Reviews of Designing with Web Standards

• 图片优化• 压缩代码

• 不停地优化

①图片压缩②格式转换③其他

Page 61: Reviews of Designing with Web Standards

• 图片优化• 压缩代码

• 不停地优化

Page 62: Reviews of Designing with Web Standards

• PngQuant

- PNG32转PNG8-Alpha

• Smush It [http://www.smushit.com]

- 在线

- 支持各种图片格式

• PngOptimizer

- 无损压缩

Page 63: Reviews of Designing with Web Standards

• PngQuant

- PNG32转PNG8-Alpha

• Smush It [http://www.smushit.com]

- 在线

- 支持各种图片格式

• PngOptimizer

- 无损压缩

Page 64: Reviews of Designing with Web Standards

• PngQuant

- PNG32转PNG8-Alpha

• Smush It [http://www.smushit.com]

- 在线

- 支持各种图片格式

• PngOptimizer

- 无损压缩

Page 65: Reviews of Designing with Web Standards

• PNGQUANT

- PNG32转PNG8-ALPHA

• Smush It [http://www.smushit.com]- 在线

- 支持各种图片格式

• PNGOPTIMIZER

- 无损压缩

Page 66: Reviews of Designing with Web Standards

• PngQuant

- PNG32转PNG8-Alpha

• Smush It [http://www.smushit.com]

- 在线

- 支持各种图片格式

• PngOptimizer- 无损压缩

Page 67: Reviews of Designing with Web Standards

• PngQuant

- PNG32转PNG8-Alpha

• Smush It [http://www.smushit.com]

- 在线

- 支持各种图片格式

• PngOptimizer- 无损压缩

Page 68: Reviews of Designing with Web Standards

• 图片优化

• 压缩代码• 不停地优化

Page 69: Reviews of Designing with Web Standards

• 图片优化

• 压缩代码• 不停地优化

Page 70: Reviews of Designing with Web Standards

• 图片优化

• 压缩代码• 不停地优化

Page 71: Reviews of Designing with Web Standards

• 图片优化

• 压缩代码

• 不停地优化

其他建议?

Page 72: Reviews of Designing with Web Standards

• 图片优化

• 压缩代码

• 不停地优化

其他建议?

Page 73: Reviews of Designing with Web Standards
Page 74: Reviews of Designing with Web Standards

① 提高产能

② 节约成本

Page 75: Reviews of Designing with Web Standards

一)让用户更爽!二)让老板更爽!

Page 76: Reviews of Designing with Web Standards
Page 77: Reviews of Designing with Web Standards

① 《网站重构》描绘了未来

② 有些东西被忽略和被误解

③ 网站重构需要实现价值

Page 78: Reviews of Designing with Web Standards

在这个领域,争论从未停止过 - 《网站重构》

谢谢!