<div class="goods">
  <h3 class="blue">尿布藍</h3>
  <h3 class="blue">啤酒藍</h3>
</div>
<div class="goods">
  <h3 class="red">尿布紅</h3>
  <h3 class="red">啤酒紅</h3>
</div>
<div class="goods">
  <h3 class="green">尿布綠</h3>
  <h3 class="green">啤酒綠</h3>
</div>
.blue{
  color: blue;
}
.red{
  color: red;
}
.green{
  color: green;
}
.goods{
  width: 100px;
  height: 100px;
  background: orange;
  text-align: center;
}
Run Pen

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.