每日阅读记录 - 20170913

A. Responsive_Navigation_Patterns(响应式导航模式)

https://developer.mozilla.org/zh-CN/Apps/Design/Responsive_Navigation_Patterns

  1. Top toggle menu

    • Pros(优势):
    • one button in header maximizes space for content on a small screen
    • important items stay visiblein most screen sizes and you decide the item priorities
    • legibility of navigation items is maintained with adequate spacing, by automatically hiding items that don’t fit
    • Cons(缺点):
    • navigation items might be less discoverable because some items are hidden in the drop-down or toggle menu
    • users may not notice the button contains a navigation menu in the smallest screen size
    • one more step is needed to access the hidden navigation items
  2. Expandable bottom menu

    • Pros(优势):
    • expandable menu is easy to discover
    • important items are always visible and you decide the item priorities
    • legibility of navigation items is maintained with adequate spacing, by automatically hiding items that don’t fit
    • Cons(缺点):
    • one more step is needed to access the navigation items that are hidden
    • navigation items might be less discoverable because some items are hidden
    • less space for content in the smallest screen size
  3. Left hidden menuLeft hidden menu

    • Pros(优势):
    • potentially displays more navigation items in a left navigation compared to a top navigation
    • most items are always visible except in the smallest screen size
    • one button in header maximizes space for content on a small screen
    • Cons(缺点):
    • navigation items might be less discoverable because some items are hidden in the drop-down or toggle menu
    • users may not notice the button contains a navigation menu in the smallest screen size
    • one more step is needed to access the navigation items that are hidden

B. 布局模式

https://developer.mozilla.org/zh-CN/docs/Web/CSS/Layout_mode

  1. 块布局:用来布置文件。块布局包含以文档为中心的功能,例如浮动元素或将其放置在多列上的功能。

  2. 行内布局:用来布置文本。

  3. 表格布局:用来布置表格。

  4. 定位布局:用来对那些与其他元素无交互的定位元素进行布置 。

  5. 弹性盒子布局:用来布置那些可以顺利调整大小的复杂页面。

    • column-*属性对弹性项目无效。
    • floatclear无效。
    • vertical-align对弹性元素无效。
  6. 网格布局:用来布置那些与一个固定网格相关的元素。

C. 雅虎前端优化策略

https://developer.yahoo.com/performance/rules.html

  1. Content ·「网页内容相关

    • Make Fewer HTTP Requests [减少http请求次数]
    • Reduce DNS Lookups [减少DNS查询次数]
    • Avoid Redirects [避免页面跳转]
    • Make Ajax Cacheable [缓存Ajax]
    • Postload Components [延迟加载]
    • Preload Components [提前加载]
    • Reduce the Number of DOM Elements [减少Dom元素数量]
    • Split Components Across Domains [根据域名划分内容]
    • Minimize Number of iframes [减少iframes数量]
    • Avoid 404s [避免404]
  2. Server ·「服务器相关

    • Use a Content Delivery Network (CDN) [使用CDN]
    • Add Expires or Cache-Control Header ×[添加Cache-Control控制头]
    • Gzip Components [压缩传输文件]
    • Configure ETags [配置ETags]
    • Flush Buffer Early [尽早flush输出]
    • Use GET for Ajax Requests [使用get请求]
    • Avoid Empty Image src[避免空的图片src]
  3. Cookie ·「缓存

    • Reduce Cookie Size [减少Cookie大小]
    • Use Cookie-Free Domains for Components [页面内容使用无cookie域名]
  4. CSS ·「CSS

    • Put Stylesheets at Top [样式置顶]
    • Avoid CSS Expressions [避免CSS表达式]
    • Choose Over @import [选择link而不是import]
    • Avoid Filters [避免使用Filters]
  5. JavaScript ·「JavaScript

    • Put Scripts at Bottom [脚本置底]
    • Make JavaScript and CSS External [使用外部的JavaScript和CSS3]
    • Minify JavaScript and CSS [简化的Js和css]
    • Remove Duplicate Scripts [脚本去重]
    • Minimize DOM Access [减少Dom访问]
    • Develop Smart Event Handlers [使用智能事件处理]
  6. Images ·「图片

    • Optimize Images [优化图片]
    • Optimize CSS Sprites [优化雪碧图]
    • Do Not Scale Images in HTML [不要在html中缩放图片]
    • Make favicon.ico Small and Cacheable [使用小且可缓存的favicon.ico]
  7. Mobile ·「移动客户端

    • Keep Components Under 25 KB [保持单个内容小于25KB]
    • Pack Components Into a Multipart Document [打包组建成复合文档]
时间: 2024-12-13 18:04:59

每日阅读记录 - 20170913的相关文章

x264阅读记录-3

14. x264_macroblock_encode函数-1 这个函数主要根据已经选定的模式来对宏块残差进行编码. (1)如果是P_SKIP模式,那么调用x264_macroblock_encode_pskip函数 在x264_macroblock_encode_pskip中先对亮度和色度进行运动补偿,调用的函数函数h->mc.mc_luma和 h->mc.mc_chroma.这两个是函数指针,根据需要对其进行初始化.一般常用的是函数mc_luma, 在mc.c文件中.在mc_luma中如果存

Android源码AOSP之设置Settings阅读记录

Android 4.4 系统的设置源码阅读记录 ----------2014-7-3------------------ AndroidManifest.xml launch的activity是 Settings,另外有40多个activity继承于它,比如设置的一级菜单: wifi,蓝牙,声音,显示,安全,应用程序,语言和时间,关于设备等等.实际上都是这一个acitivy. 这里从安全设置看起,SecuritySettings.java 以资源文件R.xml.security_settings

linux0.11 源代码阅读记录

*/--> pre.src {background-color: Black; color: White;} pre.src {background-color: Black; color: White;} pre.src {background-color: Black; color: White;} pre.src {background-color: Black; color: White;} pre.src {background-color: Black; color: White;}

NRE代码阅读记录

本来是为了论证自己的观点,把安全标签打在RunningConfig里,就写了个代码分析,结果写着写着发现的确不应该是在RunningVM里.意外的发现看代码的时候这么写写还是挺不错的,也避免了看了后面的忘记前面的.这种底层的代码实在是很难理解,对我来说就像是小学生去算高数一样,也只能硬着头皮去看了. vmmng.cc对应的就是如下界面(回头放图上来,ubuntu下没有什么截图工具,总不能把整个屏幕放上来)然后"3"键可以新建tiny-core虚拟机,对应到代码里,也就是input_th

《Javascript高级程序设计》阅读记录(三):第五章 上

这个系列以往文字地址: <Javascript高级程序设计>阅读记录(一):第二.三章 <Javascript高级程序设计>阅读记录(二):第四章 这个系列,我会把阅读<Javascript高级程序设计>之后,感觉讲的比较深入,而且实际使用价值较大的内容记录下来,并且注释上我的一些想法.做这个一方面是提升了我的阅读效果以及方便我以后阅读 另一个目的是,Javascript高级程序设计这本书内容很多也很厚,希望其他没有时间的人可以通过看这系列摘录,就可以大体学到书里面的核

论文阅读记录: Automatic Image Colorization sig16

sig论文阅读记录 Let there be Color!: Joint End-to-end Learning of Global and Local Image Priorsfor Automatic Image Colorization with Simultaneous Classification ( siggraph 2016 ) 论文简介 论文主页:http://hi.cs.waseda.ac.jp/~iizuka/projects/colorization/en/ 作者是来自Wa

黑盒测试实践(小组作业)每日例会记录——11.25

<高级软件测试>任课老师发布了一个测试实践作业,如下: 要求:针对某个Web应用系统(采用Java开发),完成系统的需求分析,使用黑盒测试方法设计测试用例,使用自动化测试工具编写脚本,执行自动化测试,记录缺陷,对测试进行总结.分组完成. 小组作业具体要求如下: (1)分析系统需求. 参考软件需求规格说明书模板(见附件1-软件需求规格说明书v1.0-模板.docx,和附件5-软件设计文档国家标准.rar)描述系统需求.如果系统功能特别多,特别复杂,则不需要涵盖系统所有功能(即不需要面面俱到),但

web测试每日例会记录(二)

今天主要对各自的任务细化 我们选用相关网站,主要是软件学院和计算机学院的官方网站. 所分配任务ABCD如下: a. 基本功能分析,围绕被测产品的主要功能,结合竞品产品,分别展开对比功能分析,例如,爱课程网有课程视频学习的功能,学堂在线也有课程视频学习的功能,主要考察二者在相同功能的实现方面,有何不同,差异主要体现在哪里,谁更有优势.要求给出主要的操作界面截图,并加以文字说明,充分体现对功能的对比分析: b. 前端性能分析,选择部分页面,使用前端分析工具,展开前端性能分析.被测产品和选定的竞品产品

RFC4862 IPV6无状态地址自动配置 阅读记录

RFC4862 IPV6无状态地址自动配置 阅读记录 最近接触IPV6.首次接触RFC文档.之前总是以为,rfc标准都是已经实现好的,不需要自己实现,直接用就好了.现在才知道,rfc只是说明了实现的流程.具体实现还是要自己实现的.颠覆了自己的认知.下面就学习RFC 4862 关于ipv6无状态地址自动配置的学习记录如下. 第一章 引言在IPV6中,主机在决定如何自动配置它的接口时采取步骤如下.自动配置处理包括利用无状态自动配置生成链路本地地址(linklocal地址),生成全球地址,以及启动验证