10.2 基础
在编写标记时,我考虑的最重要的因素是,应该尽可能有意义而且轻量。
10.2.2 reset.css
“我个人很喜欢EricMeyer”编写的reset css :http://meyerweb.com/eric/tools/css/reset
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
在web设计中使用网格
相关资料:the grid system(http://www,thegridsystem.org)和smashing杂志的“designing with grid-based approach”(http://www.smashingmagazine.com/2007/04/14/designing-withgrid-based-approach/)(已失效)
高级CSS2和CSS3特性
RGBa不透明度可以应用 于特定的属性(比如背景),它只影响这个属性。而opacity会影响应用它的元素中的所有东西。
text-overflow属性:如果装不下,就截短并加上省略号。
10.5 字体链接和更好的web排版
10.5.2 标点符号悬挂
啊 不看了