Blogger Information
Blog 7
fans 0
comment 1
visits 1846
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
这是第五天学习的权重的知识
学,无止尽
Original
238 people have browsed it

这是权重

权重我在这里就不一一上次效果图了一次性展示吧

权重(002)>(001)

  1. html body h1.title {
  2. color: green;
  3. background-color: violet;
  4. }

权重(003)>(002)

  1. html body h1 {
  2. color: red;
  3. background-color: violet;
  4. }

权重:(010)>(003)

  1. .title {
  2. color: rgba(68, 11, 224, 0.466);
  3. background-color: rgb(114, 108, 114);
  4. }

权重:(最高权限没有之一)

  1. h1 {
  2. color: blue !important;
  3. background-color:darkgray !important;
  4. }
  • 权重相同,一类书写顺序,只要提升权重就可摆脱对书写顺序的依赖
  • {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    }
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