CyanHall.com 创建于 2020-11-13, 上次更新:2021-01-08。
👉  github shields 如果有用请点赞。
class-oneclass-two 两个类的不同效果:
    .class-two {
  width: 100px;
  height: 100px;
}
.class-one.class-two {
  background-color: grey;
}
.class-one .class-two {
  background-color: brown;
}
.class-one > .class-two {
  background-color: orange;
}
  
    <div class="class-one class-two">
</div>
  
    <div class="class-one">
  <div class="class-two">
  </div>
</div>
  
    <div class="class-one">
  <div>
    <div class="class-two">
    </div>
  </div>
</div>
  

Maitained by Cyanhall.com, Copy Rights @ CC BY-NC-SA 4.0