css优先级:
1.important > 内联样式(style) > 内部样式 > 外部样式
2.选择少 > 选择多
3.开发者设置的样式 > 浏览器默认
4.直接指定 > 继承
5.权重越大,优先级越高
权重:
0:通配,关系
1:标签,伪对象
10:class,伪类,属性
100:id
1000:style
css权重
原文:http://www.cnblogs.com/dong-eng/p/8007465.html