Blogger Information
Blog 19
fans 0
comment 0
visits 5769
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
css的权重计算大小tag>class>id
vbokok
Original
176 people have browsed it
  1. /* 0.0.1 */
  2. h3{
  3. color: aqua;
  4. }
  5. /* 0.0.2 */
  6. body h3{
  7. color: black;
  8. }
  9. /* 0.1.1 */
  10. h3.span{
  11. color: blue;
  12. }
  13. /* 0.2.1 */
  14. h3.title.span{
  15. color: red;
  16. }
  17. /* 1.0.1 */
  18. h3#id{
  19. color: beige;
  20. }
  1. 由此可见tag>class>id 权重以此由小变大
  2. tag=1 class=10 id=100
Correcting teacher:PHPzPHPz

Correction status:qualified

Teacher's comments:
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post