inlinestyles,priority1000idselectors,priority100classesandpseudo-classes,priority10elementselectors,priority1wildcardselectors,priority0inheritedstyleshavenoprioritywhenselectedWhentheselectorcontainsmultipleselectors,theprioritiesof需要添加各种选择器然后进行比较。但是注意选择器的优先级计算不会超过它的最大阶数。如果选择器的优先级相同,则使用后面的样式。联合选择器的优先级是单独计算的。可以在样式末尾加一个!important,那么此时样式会获得最高优先级,会超过所有样式甚至内联样式,所以在开发中尽量避免使用。
