JSFiddle - React, Tailwind, and code Playground

by 규연 황

HTML

<ol>
    <li>1111</li>
    <li>22</li>
    <li>33</li>
    <li>44</li>
    <li>55</li>
    <li>66</li>
    <li>77</li>
    <li>88</li>
    <li>99</li>
    <li>100</li>
</ol>

CSS

ol li:nth-child(n+3):nth-child(-n+6) {
    background:red;
}