CSS学习 1.增加字体和颜色样式
设置文本样式
- 字体系列
body {
font-family: Verdana, Geneva, Arial, sans-serif(通用字体系列名);
} - 字体大小
body {
font-size: 14px;
} - 文本颜色
body {
color: silver;
} - 字体的粗细
body {
font-weight: bold/normal;
} - 文本装饰
body {
text-decoration: underline;
text-decoration: line-through(有一个从文本中间穿过的横线);
} - 字体风格
body {
font-style: italic(斜体)/oblique(倾斜);
} - 背景色
body {
background-color: silver
background-color: gdb(80%, 40%, 0%);
}
(颜色表url: http://en.wikipedia.org/wiki/Web_colors)