css选择器

1. id,class类,标签,相邻, 子,后代 , 通配, 属性选择器(a[rel="external"]) , 伪类选择器(a:hover,li:nth-child)

2. 可继承的属性: font-size,font-family,color, text-indent

3. 不可继承: margin padding border width height

4. 优先级算法:

a。 优先级就近原则, 同权重情况下样式定义最近者为准

b. 载入样式以最后载入的为准

css3伪类: first-of-type ;ast-of-type only-of-type only-child nth-child(2)

:enabled :disabled :checked

css3: transition rotate transform border-radius box-shadow text-shadow gradient skew :selection 媒体查询 多栏布局 border-image @font face