我一直认为专业是一种态度。不同于业余,专业代表无论技术高低都会遵守一定的规范,专业代表对某一领域不断的精益求精。专业就是比业余逼格高。

习惯书写规范

css 属性声明的顺序:Positioning(定位)---Box model(盒子模型)---Typographic(文字系列)--Visual(背景颜色)--其他(例animation)

 1 .declaration-order {
 2   /* Positioning */
 3   position: absolute;
 4   top: 0;
 5   right: 0;
 6   bottom: 0;
 7   left: 0;
 8   z-index: 100;
 9 
10   /* Box model */
11   display: block;
12   box-sizing: border-box;
13   width: 100px;
14   height: 100px;
15   padding: 10px;
16   border: 1px solid #e5e5e5;
17   border-radius: 3px;
18   margin: 10px;
19   float: right;
20   overflow: hidden;
21 
22   /* Typographic */
23   font: normal 13px "Helvetica Neue", sans-serif;
24   line-height: 1.5;
25   text-align: center;
26 
27   /* Visual */
28   background-color: #f5f5f5;
29   color: #fff;
30   opacity: .8;
31 
32   /* Other */
33   cursor: pointer;
34 }
参考示例

相关文章: