1、a的伪装

2、内联样式

3、内联样式表

4、CSS语法

5、选择器

6、常用选择器

7、否定伪装

8、复合选择器

9、块和内联

10、类选择

11、群组选择器

12、属性选择器

13、通配选择器

14、伪类选择器

15、伪元素

16、兄弟元素选择器

17、选择器的优先级

18、样式表

19、样式的继承

20、元素选择器

21、子元素选择器

22、子元素和后代元素选择器

一 plate plate元素
二 bento bento元素
三 #fancy id为fancy的元素
四 plate apple plate祖先元素下的apple后代元素
五 #fancy pickle id为#fancy的祖先元素下的pickle后代元素
六 .small 组为small的元素
七 orange.small 组为small的orange元素
八 bento>orange.small bento父元素下的组为small的orange子元素
九 plate,bento,div plate,bento兄弟元素在div元素中
十 * 代表所有元素
十一 plate> plate父元素的所有ziyuansu
十二 plate + apple 兄弟元素选择器,plate元素的后一个元素
十三 bento~pickle 兄弟元素选择器,bento元素后的多个pickle元素
十四 plate>apple plate父元素下的apple子元素
十五 plate orange:first-child 子元素选择器,plate元素下的第一个orange元素
十六 plate :only-child plate里只有一个
网友评论