<ul>
  <li>中身ある</li>
  <li></li>
  <li>中身ある</li>
  <li>中身ある</li>
  <li></li>
</ul>
li{
  background-color: tomato;
  &:empty{
    background-color: #ffcc00;
  }
}
View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.