[Dearest Cecilia, the story can resume. The one I had been planning on that evening walk. I can become again the man who once crossed the surrey park at dusk, in my best suit, swaggering on the promise of life. The man who, with the clarity of passion, made love to you in the library. The story can resume. I will return. Find you, love you, marry you and live without shame.--Atonement]
1.字体属性(font)
- font-family字体;
- font-size大小,一般用px;
- font-tyle格式,常用的为normal,italic(斜体);
- font-variant大小写,常用为normal,small-caps(小型大写);
- line-height行距,一般为font-size的1.5倍,当设置line-height=height时,text会居中显示,常用与button、message和其他单行的text blocks;
2.文本属性(text)
- text-align:(center,left,right,justify,inherit),文本对齐方式;
- text-decoration:(none,underline,overline,line-through,blink,inherit),文本装饰;
- text-indent文本缩进;
- text-transform文本转换:(none,capitalize,uppercase,lowercase,inherit);
- letter-spacing字母间距,word-spacing字间距;
notes:
- div > p {blablabla...;} 直接嵌套(directly nested)于div下面的p的样式
- a:link a:visited a: hover 分别为未访问过的链接,访问过的链接,鼠标悬停于上的链接
- 情景:很多同类标签,比如<p>,对不同的段落有不同的设置,而没有分别设置id或者class时,可用 p:first-child {} 来表示第一个,p:nth-child(x) {} 来表示第x个