一、设置十六进制表示的颜色,如:
h3 {
/*Add your CSS hex color here!*/
color:#cc6666;
}
二、字体的em 单位:
font-size除了以px为单位,还可以用em为单位,1em表示设备终端的默认字体大小,不要与<em>标签搞混。
三、字体可以设置备选值,如:
h1{
font-family:Times,serif;
}
四、设置背景色,宽和高:
div{
background-color:#cc0000;
width:100px;
height:100px;
}
td{
height:50px;
border:1px dashed blue;
}
table{
border: 1px solid black;
}
效果如图:
六.链接也可以像普通文本一样设置字体,颜色等属性,它还有一个额外的text-decoration属性,允许你做一些额外的装饰,如:
a{
color:#cc0000;
text-decoration:none;
}