Ich habe diesen Code und ich kann nicht herausfinden, warum der N-Typ-Selektor 2 sein muss, nicht 1, für das erste Geschwister dieses Typs.Ich brauche eine Erklärung, wie nth-of-type funktioniert
Hier ist ein jsfiddle Code: https://jsfiddle.net/xj5hvn16/
Kann jemand bitte erklären, diese zu mir?
.flowbox .utm_registrars_code:nth-of-type(2) {
background-color: red;
}
<div class="flowbox freebox">
<div class="pholdcard18"></div>
<div class="flowcard14 utm_registrars_code">
<div class="content">
Content 1
</div>
</div>
<div class="flowcard14 utm_registrars_code">
<div class="content">
Content 2
</div>
</div>
<div class="flowcard14 utm_registrars_code">
<div class="content">
Content 3
</div>
</div>
</div>
https://developer.mozilla.org/en-US/docs/Web/CSS/:nth-of- Art – mplungjan