读书笔记:The Woork Handbook

The Woork Handbook
内容暂时不清楚,但是一篇文章里看到 web 开发者必备的电子书,E 文,for free;

1、一个比多个 css 文件更容易维护,除非部分 css 代码需要独立维护
2、在 css 文件内加上 table of content,清晰的架构,使 css 代码可读性更强

3、不同模块的 css 代码分块展示(空行隔开),属性增加缩进
4、结构良好的代码更容易维护:

  • be simple
  • be elegant-code oriented [comment your code]
  • be methodic [think before code]

5、reset the attrs
6、custom class to the end
7、semantic approach[语义式命名,而非根据页面的结构布局,样式比较灵活]

暂无数据