File tree Expand file tree Collapse file tree 1 file changed +20
-3
lines changed Expand file tree Collapse file tree 1 file changed +20
-3
lines changed Original file line number Diff line number Diff line change 69
69
70
70
规范名称 | Cook
71
71
--------|------|
72
- 当前版本 | v1.0
72
+ 当前版本 | v1.0 beta
73
73
规范发起 | [ 杜瑶(@doyoe )] ( http://weibo.com/doyoe )
74
74
参与人群 | Qunar FED
75
- 最后更新 | 2014.10.30
75
+ 最后更新 | 2014.11.6
76
76
77
77
<a name =" general " ></a >
78
78
## 通用约定
156
156
* 在HTML中文档中用 ` <meta charset="utf-8" /> ` 来指定编码;
157
157
* 为每个CSS文档显示的定义编码,在文档首行定义 ` @charset "utf-8"; `
158
158
159
- > 在sass中 ,如果文档中出现中文,却未显示定义编码,将会编译出错,为了统一各种写法,且提前规避错误几率,统一要求每个CSS文档都需要定义编码
159
+ > 在 Sass 中 ,如果文档中出现中文,却未显示定义编码,将会编译出错,为了统一各种写法,且提前规避错误几率,统一要求每个CSS文档都需要定义编码
160
160
161
161
<a name =" lowercase " ></a >
162
162
### 6.小写
460
460
461
461
> 参阅:[ HTML5 Elements] ( http://www.w3.org/TR/html5/ )
462
462
463
+ ### 12.模块化
463
464
465
+ * 每个模块必须有一个模块名;
466
+ * 每个模块的基本组成部分应该一致。
467
+
468
+ 代码如:
469
+
470
+ <section class="m-detail">
471
+ <header class="m-detail-hd">
472
+ <h1 class="title">模块标题</h1>
473
+ </header>
474
+ <div class="m-detail-bd">
475
+ <p class="info">一些实际内容</p>
476
+ </div>
477
+ <footer class="m-detail-ft">
478
+ <a href="#" class="more">更多</a>
479
+ </footer>
480
+ </section>
464
481
465
482
<a name =" css " ></a >
466
483
## CSS约定
You can’t perform that action at this time.
0 commit comments