You can use :nth-last-of-type:
.wrapper div:nth-of-type(even) + div:nth-last-of-type(2) {
background-color: #ADD8E6;
}
.wrapper div:nth-last-of-type(2):first-of-type {
background-color: #ADD8E6;
}
div, div. div, div ( div s). .
.
, . (2013) :
:nth-last-of-type CSS Selectors Module 3, , . , . , polyfill IE, , .
MDN , " " :
ββββββββββ¬ββββββββββββββββββ¬ββββββββββββββββββββ¬ββββββββ¬βββββββββ
β Chrome β Firefox (Gecko) β Internet Explorer β Opera β Safari β
ββββββββββΌββββββββββββββββββΌββββββββββββββββββββΌββββββββΌβββββββββ€
β 4.0 β 3.5 (1.9.1) β 9.0 β 9.5 β 3.2 β
ββββββββββ΄ββββββββββββββββββ΄ββββββββββββββββββββ΄ββββββββ΄βββββββββ
:
βββββββββββ¬βββββββββββββββββββββββββ¬ββββββββββββ¬βββββββββββββββ¬ββββββββββββββββ
β Android β Firefox Mobile (Gecko) β IE Mobile β Opera Mobile β Safari Mobile β
βββββββββββΌβββββββββββββββββββββββββΌββββββββββββΌβββββββββββββββΌββββββββββββββββ€
β 2.1 β 1.0 (1.9.1) β 9.0 β 10.0 β 3.2 β
βββββββββββ΄βββββββββββββββββββββββββ΄ββββββββββββ΄βββββββββββββββ΄ββββββββββββββββ