WebRebuild网站改版培训(PPT36页)(共37张).pptx
-
资源ID:8202861
资源大小:484.30KB
全文页数:37页
- 资源格式: PPTX
下载积分:20金币
快捷下载
会员登录下载
微信登录下载
三方登录下载:
微信扫一扫登录
友情提示
2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
|
WebRebuild网站改版培训(PPT36页)(共37张).pptx
WEB重构渔隐 , Taobao UED了解WEB重构前需要知道的一些内容tableThe 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.W3C :整理数据很方便Table布局为何不建议用table布局?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:是表格而非栅格1.不够语义 2.维护性差3.不利于搜索引擎优化4.代码臃肿5.可访问性差请不要排斥tableTable没有错,错的是拿table做布局的人Div和SpanThe 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.标签(结构)标签(结构)语义语义表现(样式)表现(样式)div节元素,块容器独立一行span节元素,内联容器无具体表现table表格很复杂p段落上下两端有边距a超链接蓝色、下划线strong强调文本粗体em强调文本斜体每个html标签都有其特有含义WEB重构:还标签本意,结构、表现、行为相分离在拿到设计稿时,首先应该考虑的不是表现,而是结构标题标题强调强调列表列表表格表格表单表单段落段落标题小标题内容 标题表格标题 还原语义,从代码上理解网页基本HTML结构1.Html版本信息文档类型(doctype)2.Html元素3.文档头head标签4.文档内容body标签 Doctype,Html,head,body顺序固定且唯一Doctype很不起眼,但很重要好的结构是一切的基础 文档标题 标题小标题内容 标题表格标题 分离表现标题to h3 border:1px dashed #f00; 标题分离脚本hello worldtohello world document.getElementById(someid).onclick = function() alert(hello world); 文档标题 h3color:#f00 标题小标题内容 标题表格标题 document.getElementById(someid).onclick=function()Some coding 将表现和脚本分离到外部文件 文档标题 标题小标题内容 标题表格标题 兼容性调整,前端开发赖以生存的基本技能淘宝网用户浏览器分布图,19日摘自哈勃系统淘宝网用户屏幕分辨率分布图,19日摘自哈勃系统从浏览器趋势可以看出,IE6虽逐步消亡,却依旧强势为用户而设计是设计师和前端开发共同的目标路漫漫其修远兮THX!演讲完毕,谢谢观看!