一、设置文本样式
- 改变字体大小、颜色和字体类型
- 文本装饰
p {
font-size: 16px;
color: #333;
font-family: Arial, sans-serif;
}
a {
text-decoration: none;
color: blue;
}
a:hover {
text-decoration: underline;
}
二、设置背景样式
- 背景颜色
- 背景图片
body {
background-color: #f5f5f5;
}
div {
background-image: url('image.jpg');
background-size: cover;
background-repeat: no-repeat;
}