CSS 基础语法
1. 规则组成 :
(1).选择器, (2). 一条或多条声明
selector{declaration1; declaration2;.......}
2. 每条声明由一个属性和一个值组成
属性(property)是 希望设置的样式属性(style attribute)
selector{property: value; declaration2;.......}
如果值为多个单词, 要加引号
p{font-family: "sans serif";}
3. 注意每行声明末尾要加 ;
每行只写一个声明。

浙公网安备 33010602011771号