Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d267a21

Browse files
committed
add html module
add html module
1 parent 487ec5c commit d267a21

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

README.md

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@
6969

7070
规范名称 | Cook
7171
--------|------|
72-
当前版本 | v1.0
72+
当前版本 | v1.0 beta
7373
规范发起 | [杜瑶(@doyoe)](http://weibo.com/doyoe)
7474
参与人群 | Qunar FED
75-
最后更新 | 2014.10.30
75+
最后更新 | 2014.11.6
7676

7777
<a name="general"></a>
7878
## 通用约定
@@ -156,7 +156,7 @@
156156
* 在HTML中文档中用 `<meta charset="utf-8" />` 来指定编码;
157157
* 为每个CSS文档显示的定义编码,在文档首行定义 `@charset "utf-8";`
158158

159-
> 在sass中,如果文档中出现中文,却未显示定义编码,将会编译出错,为了统一各种写法,且提前规避错误几率,统一要求每个CSS文档都需要定义编码
159+
> 在 Sass 中,如果文档中出现中文,却未显示定义编码,将会编译出错,为了统一各种写法,且提前规避错误几率,统一要求每个CSS文档都需要定义编码
160160
161161
<a name="lowercase"></a>
162162
### 6.小写
@@ -460,7 +460,24 @@
460460
461461
> 参阅:[HTML5 Elements](http://www.w3.org/TR/html5/)
462462
463+
### 12.模块化
463464

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>
464481

465482
<a name="css"></a>
466483
## CSS约定

0 commit comments

Comments
 (0)