JSFiddle - React, Tailwind, and code Playground

by funato

HTML

<h2>SANDWITH</h2>
<ul>
<li>ハム&チーズサンド</li>
<li>卵&野菜サンド</li>
<li>カツサンド</li>
</ul>

CSS

div[rel*="le"]{
	color:#FF0000;}

li:nth-child(2n+1){background-color:yellow;}
li:nth-child(2n+2){background-color:greenyellow;}