.author {
font-style: italic;
font-size: 18px;
}
#author-text {
font-size: 20px;
}
p,li {
font-family: sans-serif;
color: #444444;
font-size: 22px;
}
优先级依次降低:
- ID, 若有多个ID选最后声明的
- 类选择器
- 元素选择器
- 通用适配符
*
.author {
font-style: italic;
font-size: 18px;
}
#author-text {
font-size: 20px;
}
p,li {
font-family: sans-serif;
color: #444444;
font-size: 22px;
}
优先级依次降低:
*