整体结构发布时间:2014-08-21 | 分类:HTML规范 |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<!DOCTYPE html> < html > < head > < meta charset = "utf-8" /> < title >新开普研发管理部</ title > < meta name = "keywords" content = "" /> < meta name = "description" content = "" /> < meta name = "viewport" content = "width=device-width" /> < link rel = "stylesheet" href = "css/style.css" /> < link rel = "shortcut icon" href = "img/favicon.ico" /> < link rel = "apple-touch-icon" href = "img/touchicon.png" /> </ head > < body > </ body > </ html > |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
< body > <!-- 侧栏内容区 --> < div class = "m-side" > < div class = "side" > < div class = "sidein" > <!-- 热门标签 --> < div class = "sideblk" > < div class = "m-hd3" >< h3 class = "tit" >热门标签</ h3 > </ div > ... </ div > <!-- 最热TOP5 --> < div class = "sideblk" > < div class = "m-hd3" >< h3 class = "tit" >最热TOP5</ h3 > < a href = "#" class = "s-fc02 f-fr" >更多»</ a ></ div > ... </ div > </ div > </ div > </ div > <!-- /侧栏内容区 --> </ body > |
如果可以写成<div></div><div></div>那么就不要写成<div><div></div></div>
比如<div><h2></h2></div>已经能满足要求,那么就不要再写成<div><div><h2></h2></div></div>
比如不要出现这种情况:<div class="class1 class2 class3 class4"></div>
比如在这样一个列表中,li标签中的itm应去除:<ul class="m-help"><li class="itm"></li><li class="itm"></li></ul>
扫描二维码分享到微信