核心知识
CSS 规则的组成
选择器找到元素,声明块写一个或多个“属性: 值”。
- 选择器回答“改谁”
- 属性回答“改什么”
- 值回答“改成什么”
<style>
h1 {
color: blue;
font-size: 32px;
}
</style>
<h1>黄梅戏分享会</h1>
<p>欢迎参加本次活动。</p>
选择器找到元素,声明块写一个或多个“属性: 值”。
<style>
h1 {
color: blue;
font-size: 32px;
}
</style>
<h1>黄梅戏分享会</h1>
<p>欢迎参加本次活动。</p>