<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<div class="logo">
<ul>
<li>123123</li>
<li>2312312</li>
<li>sjfsdf</li>
<li>sdfsdaf</li>
<li>sdfagag</li>
<li>sdfafsf</li>
<li>sdafafasdf</li>
<li>sdafafasdf</li>
<li>sdafafasdf</li>
<li>sdafafasdf</li>
<li>sdafafasdf</li>
<li>sdafafasdf</li>
<li>sdafafasdf</li>
<li>sdafafasdf</li>
<li>sdafafasdf</li>
<li>sdafafasdf</li>
<li>sdafafasdf</li>
<li>sdafafasdf</li>
<li>sdafafasdf</li>
<li>sdafafasdf</li>
<li>sdafafasdf</li>
<li>sdafafasdf</li>
<li>sdafafasdf</li>
<li>sdafafasdf</li>
<li>sdafafasdf</li>
</ul>
</div>
</body>
</html>
Total 4 colors
the first li is red
the second li is blue
the third li is black
the fourth li is yellow
5-8li repeat the above colors, and so on
can pure css be achieved? Is there a better way to write