• 1. WEB重构渔隐 , Taobao UED
    • 2. 了解WEB重构前需要知道的一些内容
    • 3. table
    • 4. The HTML table model allows authors to arrange data -- text, preformatted text, images, links, forms, form fields, other tables, etc. -- into rows and columns of cells.http://www.w3.org/TR/html401/struct/tables.html#h-11.1W3C :
    • 5. 整理数据很方便
    • 6. Table布局
    • 7. 为何不建议用table布局?
    • 8. Tables should not be used purely as a means to layout document content as this may present problems when rendering to non-visual media.  … To minimize these problems, authors should use style sheets to control layout rather than tables.W3C:
    • 9. 是表格而非栅格
    • 10. 1.不够语义 2.维护性差 3.不利于搜索引擎优化 4.代码臃肿 5.可访问性差
    • 11. 请不要排斥tableTable没有错,错的是拿table做布局的人
    • 12. Div和Span
    • 13. The DIV and SPAN elements, in conjunction with the id and class attributes, offer a generic mechanism for adding structure to documents. These elements define content to be inline (SPAN) or block-level (DIV) but impose no other presentational idioms on the content. Thus, authors may use these elements in conjunction with style sheets, the lang attribute, etc., to tailor HTML to their own needs and tastes.http://www.w3.org/TR/html401/struct/global.html#h-7.5.4
    • 14. 标签(结构)语义表现(样式)div节元素,块容器独立一行span节元素,内联容器无具体表现table表格很复杂p段落上下两端有边距a超链接蓝色、下划线strong强调文本粗体em强调文本斜体每个html标签都有其特有含义
    • 15. WEB重构:还标签本意,结构、表现、行为相分离
    • 16. 在拿到设计稿时,首先应该考虑的不是表现,而是结构标题强调列表表格表单段落
    • 17.

      标题

      小标题

      内容

      标题

      表格

      标题

      还原语义,从代码上理解网页
    • 18. 基本HTML结构
    • 19. 1.Html版本信息—文档类型(doctype) 2.Html元素 3.文档头head标签 4.文档内容body标签
    • 20. Doctype,Html,head,body顺序固定且唯一
    • 21. Doctype很不起眼,但很重要http://www.chencheng.org/blog/2010/01/15/ppt-detail-on-html-spec/ http://blog.silentash.com/2010/01/html5-doctype-and-img-space/
    • 22. 好的结构是一切的基础
    • 23. 文档标题

      标题

      小标题

      内容

      标题

      表格

      标题

    • 24. 分离表现

      标题

      to

      标题

    • 25. 分离脚本to
    • 26. 文档标题

      标题

      小标题

      内容

      标题

      表格

      标题

    • 29. 兼容性调整,前端开发赖以生存的基本技能
    • 30. (本页无文本内容)
    • 31. 淘宝网用户浏览器分布图,19日摘自哈勃系统
    • 32. 淘宝网用户屏幕分辨率分布图,19日摘自哈勃系统
    • 33. 从浏览器趋势可以看出,IE6虽逐步消亡,却依旧强势
    • 34. 为用户而设计是设计师和前端开发共同的目标
    • 35. 路漫漫其修远兮……
    • 36. THX!